From dc787148c7fe9b0bf1bfd2db980672e891011716 Mon Sep 17 00:00:00 2001 From: kkewwei Date: Wed, 25 Sep 2024 12:12:25 +0800 Subject: [PATCH] test Signed-off-by: kkewwei --- .../java/org/opensearch/gateway/RecoveryFromGatewayIT.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java b/server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java index bcf23a37c0010..3aef3cdfd063d 100644 --- a/server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/gateway/RecoveryFromGatewayIT.java @@ -1382,6 +1382,7 @@ public void testShardStoreFetchMultiNodeMultiIndexesUsingBatchAction() throws Ex String indexName1 = "test1"; String indexName2 = "test2"; DiscoveryNode[] nodes = getDiscoveryNodes(); + System.out.println(); TransportNodesListShardStoreMetadataBatch.NodesStoreFilesMetadataBatch response = prepareAndSendRequest( new String[] { indexName1, indexName2 }, nodes @@ -1392,6 +1393,7 @@ public void testShardStoreFetchMultiNodeMultiIndexesUsingBatchAction() throws Ex ShardRouting[] shardRoutings = clusterSearchShardsGroup.getShards(); assertEquals(2, shardRoutings.length); for (ShardRouting shardRouting : shardRoutings) { + System.out.println("----------------" + shardRouting.shortSummary()); TransportNodesListShardStoreMetadataBatch.NodeStoreFilesMetadata nodeStoreFilesMetadata = response.getNodesMap() .get(shardRouting.currentNodeId()) .getNodeStoreFilesMetadataBatch() @@ -1532,8 +1534,11 @@ private void assertNodeStoreFilesMetadataSuccessCase( assertNull(nodeStoreFilesMetadata.getStoreFileFetchException()); TransportNodesListShardStoreMetadataHelper.StoreFilesMetadata storeFileMetadata = nodeStoreFilesMetadata.storeFilesMetadata(); assertFalse(storeFileMetadata.isEmpty()); + System.out.println("----------" + storeFileMetadata); assertEquals(shardId, storeFileMetadata.shardId()); assertNotNull(storeFileMetadata.peerRecoveryRetentionLeases()); + System.out.println("----------" + storeFileMetadata.peerRecoveryRetentionLeases()); + } private void assertNodeGatewayStartedShardsHappyCase(GatewayStartedShard gatewayStartedShard) {