Skip to content

IGNITE-28664 Fix failed tests in Disk Page Compressions 4 Suite#12913

Open
zstan wants to merge 4 commits into
apache:masterfrom
zstan:testClusterSnapshotHandlers
Open

IGNITE-28664 Fix failed tests in Disk Page Compressions 4 Suite#12913
zstan wants to merge 4 commits into
apache:masterfrom
zstan:testClusterSnapshotHandlers

Conversation

@zstan
Copy link
Copy Markdown
Contributor

@zstan zstan commented Mar 19, 2026

No description provided.

@zstan zstan force-pushed the testClusterSnapshotHandlers branch from 95a913b to ba090a7 Compare March 23, 2026 06:02
@sonarqubecloud
Copy link
Copy Markdown

@zstan zstan force-pushed the testClusterSnapshotHandlers branch 3 times, most recently from 0b76cb9 to 64b8918 Compare May 12, 2026 12:37
@zstan zstan force-pushed the testClusterSnapshotHandlers branch from 64b8918 to 27978ad Compare May 12, 2026 12:41
@zstan zstan changed the title testClusterSnapshotHandlers up timeout IGNITE-28664 Fix failed tests in Disk Page Compressions 4 Suite May 12, 2026

GridTestUtils.assertThrowsAnyCause(log, () -> fut.get(TIMEOUT), IgniteCheckedException.class, expMsg);
runWithLogggedThreadDump(() ->
GridTestUtils.assertThrowsAnyCause(log, () -> fut.get(TIMEOUT), IgniteCheckedException.class, expMsg));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one coming from AbstractSnapshotSelfTest which is 15sec. I see you had only 1 run for Disk Page Compressions 5 which might not be enough. The timeout is not changed so I anticipate further failures. The ticket is for Disk 4, and the test fails on Disk 5, we should either fix Disk 5 as well and add it to the ticket description or remove this change.


ignite.snapshot().restoreSnapshot(SNAPSHOT_NAME, null).get(TIMEOUT);
runWithLogggedThreadDump(() ->
ignite.snapshot().restoreSnapshot(SNAPSHOT_NAME, null).get(TIMEOUT));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above


grid(0).snapshot().restoreSnapshot(SNAPSHOT_NAME, Collections.singleton(DEFAULT_CACHE_NAME)).get(TIMEOUT);
runWithLogggedThreadDump(() ->
grid(0).snapshot().restoreSnapshot(SNAPSHOT_NAME, Collections.singleton(DEFAULT_CACHE_NAME)).get(TIMEOUT));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one coming from AbstractSnapshotSelfTest which is 15sec. I see you had only 1 run for Disk Page Compressions 6 which might not be enough. The timeout is not changed so I anticipate further failures. The ticket is for Disk 4, and the test fails on Disk 6, we should either fix Disk 6 as well and add it to the ticket description or remove this change.

Copy link
Copy Markdown
Contributor

@maksaska maksaska May 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timeouts unchanged. Test is failing on teamcity

@zstan
Copy link
Copy Markdown
Contributor Author

zstan commented May 18, 2026

now we have:
IgnitePdsCompressionTestSuite4 -> IgniteClusterSnapshotRestoreSelfTest
IgnitePdsCompressionTestSuite5 -> IgniteClusterSnapshotHandlerTest
IgnitePdsCompressionTestSuite6 -> IgniteClusterSnapshotCheckWithIndexesTest
thus only for theese 3 tests i have change a default timeouts

}

/** Print thread dump if {@code IgniteFutureTimeoutException} is raised. */
protected void runWithLogggedThreadDump(Runnable action) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loggged

private final List<SnapshotHandler<?>> handlers = new ArrayList<>();

/** Timeout in milliseconds to await for snapshot operation being completed. */
protected static final long TIMEOUT = 60_000;
Copy link
Copy Markdown
Contributor

@maksaska maksaska May 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you clarify the scope of this PR? The ticket description mentions covering only Disk 4 tests, but this PR modifies IgniteClusterSnapshotHandlerTest, which belongs to the Disk 5 suite.

  • If we are including Disk 5: Please update the ticket description to avoid confusion. Also, can we update the timeouts for IgniteSnapshotMXBeanTest while we are at it?
  • If Disk 5 is out of scope: I suggest reverting the changes to IgniteClusterSnapshotHandlerTest to keep this PR focused.

*/
public class IgniteClusterSnapshotCheckWithIndexesTest extends AbstractSnapshotSelfTest {
/** Timeout in milliseconds to await for snapshot operation being completed. */
protected static final long TIMEOUT = 60_000;
Copy link
Copy Markdown
Contributor

@maksaska maksaska May 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as for IgniteClusterSnapshotHandlerTest.

The ticket description mentions covering only Disk 4 tests, but this PR modifies IgniteClusterSnapshotCheckWithIndexingTest as well as IgniteClusterSnapshotRestoreWithIndexingTest, which belongs to the Disk 6 suite.

  • If we are including Disk 6: Please update the ticket description to avoid confusion. Also, can we update the timeouts for IgniteClusterSnapshotMetricsTest while we are at it? And I see IgniteClusterSnapshotRestoreWithIndexingTest timeouts unchanged. Was it on purpuse?
  • If Disk 6 is out of scope: I suggest reverting the changes to keep this PR focused.


grid(0).snapshot().restoreSnapshot(SNAPSHOT_NAME, Collections.singleton(DEFAULT_CACHE_NAME)).get(TIMEOUT);
runWithLogggedThreadDump(() ->
grid(0).snapshot().restoreSnapshot(SNAPSHOT_NAME, Collections.singleton(DEFAULT_CACHE_NAME)).get(TIMEOUT));
Copy link
Copy Markdown
Contributor

@maksaska maksaska May 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timeouts unchanged. Test is failing on teamcity

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants