Skip to content

Commit dc78714

Browse files
committed
test
Signed-off-by: kkewwei <[email protected]>
1 parent 5888867 commit dc78714

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,7 @@ public void testShardStoreFetchMultiNodeMultiIndexesUsingBatchAction() throws Ex
13821382
String indexName1 = "test1";
13831383
String indexName2 = "test2";
13841384
DiscoveryNode[] nodes = getDiscoveryNodes();
1385+
System.out.println();
13851386
TransportNodesListShardStoreMetadataBatch.NodesStoreFilesMetadataBatch response = prepareAndSendRequest(
13861387
new String[] { indexName1, indexName2 },
13871388
nodes
@@ -1392,6 +1393,7 @@ public void testShardStoreFetchMultiNodeMultiIndexesUsingBatchAction() throws Ex
13921393
ShardRouting[] shardRoutings = clusterSearchShardsGroup.getShards();
13931394
assertEquals(2, shardRoutings.length);
13941395
for (ShardRouting shardRouting : shardRoutings) {
1396+
System.out.println("----------------" + shardRouting.shortSummary());
13951397
TransportNodesListShardStoreMetadataBatch.NodeStoreFilesMetadata nodeStoreFilesMetadata = response.getNodesMap()
13961398
.get(shardRouting.currentNodeId())
13971399
.getNodeStoreFilesMetadataBatch()
@@ -1532,8 +1534,11 @@ private void assertNodeStoreFilesMetadataSuccessCase(
15321534
assertNull(nodeStoreFilesMetadata.getStoreFileFetchException());
15331535
TransportNodesListShardStoreMetadataHelper.StoreFilesMetadata storeFileMetadata = nodeStoreFilesMetadata.storeFilesMetadata();
15341536
assertFalse(storeFileMetadata.isEmpty());
1537+
System.out.println("----------" + storeFileMetadata);
15351538
assertEquals(shardId, storeFileMetadata.shardId());
15361539
assertNotNull(storeFileMetadata.peerRecoveryRetentionLeases());
1540+
System.out.println("----------" + storeFileMetadata.peerRecoveryRetentionLeases());
1541+
15371542
}
15381543

15391544
private void assertNodeGatewayStartedShardsHappyCase(GatewayStartedShard gatewayStartedShard) {

0 commit comments

Comments
 (0)