-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segment Replication stats throwing NPE when shards are unassigned or are in delayed allocation phase #14580
base: main
Are you sure you want to change the base?
Conversation
❌ Gradle check result for ec6091b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…are in delayed allocation phase Signed-off-by: Rampreeth Ethiraj <[email protected]>
❌ Gradle check result for aca2198: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 2677ac5: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for b7577d7: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for b7577d7: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Rampreeth Ethiraj <[email protected]>
Hi @mch2 , please review this again. Tests seem to be running fine now. |
Signed-off-by: Rampreeth Ethiraj <[email protected]>
❌ Gradle check result for 476e64d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Rampreeth Ethiraj <[email protected]>
❕ Gradle check result for 0db942d: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Signed-off-by: Rampreeth Ethiraj <[email protected]>
Hi @mch2 , gentle reminder to review this |
❌ Gradle check result for a6bbe1a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@@ -104,13 +104,22 @@ static String nodeIdFromAllocationId(final AllocationId allocationId) { | |||
} | |||
|
|||
static IndexShardRoutingTable routingTable(final Set<AllocationId> initializingIds, final AllocationId primaryId) { | |||
return routingTable(initializingIds, Collections.singleton(primaryId), primaryId); | |||
return routingTable(initializingIds, Collections.singleton(primaryId), primaryId, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to test this without adding this flag and updating these base methods. We can have an individual test create the routing table and add the routing with null aId. That should avoid the need to change unrelated tests like PeerRecoveryRetentionLease as well. Please see
OpenSearch/server/src/test/java/org/opensearch/index/seqno/ReplicationTrackerTests.java
Line 1936 in 8def8cb
final IndexShardRoutingTable.Builder builder = new IndexShardRoutingTable.Builder(shardId); |
testSegmentReplicationCheckpointForRelocatingPrimary
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will make that change
This PR is stalled because it has been open for 30 days with no activity. |
@rampreeth Let us know if you are blocked on this. I see that @mch2 has left some comments. |
This PR is stalled because it has been open for 30 days with no activity. |
Segment Replication stats throwing NPE when shards are unassigned or are in delayed allocation phase
Description
[Describe what this change achieves]
Related Issues
Resolves #11945
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.