mirror of
https://github.com/apache/lucene.git
synced 2025-02-09 19:45:22 +00:00
SOLR-11452: TestTlogReplica.testOnlyLeaderIndexes() failure
This commit is contained in:
parent
0673c57ecf
commit
5e1474dca4
@ -489,16 +489,23 @@ public class TestTlogReplica extends SolrCloudTestCase {
|
||||
waitForNumDocsInAllActiveReplicas(2);
|
||||
assertCopyOverOldUpdates(1, timeCopyOverPerCores);
|
||||
|
||||
boolean firstCommit = true;
|
||||
// UpdateLog copy over old updates
|
||||
for (int i = 15; i <= 150; i++) {
|
||||
cloudClient.add(collectionName, sdoc("id",String.valueOf(i)));
|
||||
if (random().nextInt(100) < 15 & i != 150) {
|
||||
if (firstCommit) {
|
||||
// because tlog replicas periodically ask leader for new segments,
|
||||
// therefore the copy over old updates action must not be triggered until
|
||||
// tlog replicas actually get new segments
|
||||
assertCopyOverOldUpdates(1, timeCopyOverPerCores);
|
||||
firstCommit = false;
|
||||
}
|
||||
cloudClient.commit(collectionName);
|
||||
}
|
||||
}
|
||||
checkRTG(120,150, cluster.getJettySolrRunners());
|
||||
waitForReplicasCatchUp(20);
|
||||
assertCopyOverOldUpdates(2, timeCopyOverPerCores);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
Loading…
x
Reference in New Issue
Block a user