Skip to content
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

[BUG] [Segment Replication] Handle closed indices on segrep source #6724

Closed
dreamer-89 opened this issue Mar 16, 2023 · 1 comment
Closed
Assignees
Labels
bug Something isn't working distributed framework

Comments

@dreamer-89
Copy link
Member

dreamer-89 commented Mar 16, 2023

Handle closed indices on source. ClosedIndexIT.testNoopPeerRecoveriesWhenIndexClosed is sample example IT.

On source it fails while fetching reference of index service.

Suppressed: RemoteTransportException[[node_s1][127.0.0.1:60473][internal:index/shard/replication/get_checkpoint_info]]; nested: NullPointerException[Cannot invoke "org.opensearch.index.IndexService.getShard(int)" because "indexService" is null];
Caused by: java.lang.NullPointerException: Cannot invoke "org.opensearch.index.IndexService.getShard(int)" because "indexService" is null
at org.opensearch.indices.replication.OngoingSegmentReplications.getCachedCopyState(OngoingSegmentReplications.java:84)
at org.opensearch.indices.replication.OngoingSegmentReplications.prepareForReplication(OngoingSegmentReplications.java:149)
at org.opensearch.indices.replication.SegmentReplicationSourceService$CheckpointInfoRequestHandler.messageReceived(SegmentReplicationSourceService.java:137)
at org.opensearch.indices.replication.SegmentReplicationSourceService$CheckpointInfoRequestHandler.messageReceived(SegmentReplicationSourceService.java:118)
at org.opensearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:106)
at org.opensearch.transport.InboundHandler$RequestHandler.doRun(InboundHandler.java:453)
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:806)
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:833)
@dreamer-89
Copy link
Member Author

Marking this as closed with #6795

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework
Projects
Status: Done
Development

No branches or pull requests

1 participant