We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1f527 commit 968b64cCopy full SHA for 968b64c
server/src/main/java/org/opensearch/index/shard/RemoteStoreRefreshListener.java
@@ -59,6 +59,13 @@ public RemoteStoreRefreshListener(IndexShard indexShard) {
59
.getDelegate()).getDelegate();
60
this.primaryTerm = indexShard.getOperationPrimaryTerm();
61
localSegmentChecksumMap = new HashMap<>();
62
+ if (indexShard.shardRouting.primary()) {
63
+ try {
64
+ this.remoteDirectory.init();
65
+ } catch (IOException e) {
66
+ logger.error("Exception while initialising RemoteSegmentStoreDirectory", e);
67
+ }
68
69
}
70
71
@Override
0 commit comments