Skip to content

Commit

Permalink
IGNITE-23399 Decrease frequency of Metastorage idle SafeTime propagat…
Browse files Browse the repository at this point in the history
…ion in tests (#4532)
  • Loading branch information
rpuch authored Oct 14, 2024
1 parent 008f817 commit ba808e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class TestIgnitionManager {
/** Default DelayDuration in ms used for tests that is set on node init. */
public static final int DEFAULT_DELAY_DURATION_MS = 100;

private static final int DEFAULT_METASTORAGE_IDLE_SYNC_TIME_INTERVAL_MS = 10;
private static final int DEFAULT_METASTORAGE_IDLE_SYNC_TIME_INTERVAL_MS = 50;

/** Default partition idle SafeTime interval in ms used for tests that is set on node init. */
public static final int DEFAULT_PARTITION_IDLE_SYNC_TIME_INTERVAL_MS = 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ public class ItSqlLogicTest extends BaseIgniteAbstractTest {
+ " rest.port: {}\n"
+ "}";

/**
* Interval between idle Safe Time synchronizations for the Metastorage.
*
* <p>This value is chosen empirically (it allows to run the suite as fast as possible at the TC).
*/
private static final int METASTORAGE_IDLE_SYNC_TIME_INTERVAL_MS = 10;

/** Embedded nodes. */
private static final List<IgniteServer> NODES = new ArrayList<>();

Expand Down Expand Up @@ -338,6 +345,7 @@ private static void startNodes() {
.metaStorageNodes(nodes.get(0))
.clusterName("cluster")
.clusterConfiguration("ignite {"
+ "metaStorage.idleSyncTimeInterval: " + METASTORAGE_IDLE_SYNC_TIME_INTERVAL_MS + ",\n"
+ "gc.lowWatermark.dataAvailabilityTime: 1010,\n"
+ "gc.lowWatermark.updateInterval: 3000,\n"
+ "metrics.exporters.logPush.exporterName: logPush,\n"
Expand Down

0 comments on commit ba808e4

Please sign in to comment.