Skip to content

Commit 3d7a3f4

Browse files
committed
Merge remote-tracking branch 'origin/main' into refactor/rounding
Signed-off-by: Ketan Verma <ketan9495@gmail.com>
2 parents 3d4f7ad + aa0fddb commit 3d7a3f4

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6363
- Return 409 Conflict HTTP status instead of 503 on failure to concurrently execute snapshots ([#8986](https://github.com/opensearch-project/OpenSearch/pull/5855))
6464
- Add task completion count in search backpressure stats API ([#10028](https://github.com/opensearch-project/OpenSearch/pull/10028/))
6565
- Performance improvement for Datetime field caching ([#4558](https://github.com/opensearch-project/OpenSearch/issues/4558))
66-
- Performance improvement for MultiTerm Queries on Keyword fields ([#7057](https://github.com/opensearch-project/OpenSearch/issues/7057))
6766

6867

6968
### Deprecated
@@ -126,6 +125,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
126125
- Add instrumentation for indexing in transport bulk action and transport shard bulk action. ([#10273](https://github.com/opensearch-project/OpenSearch/pull/10273))
127126
- [BUG] Disable sort optimization for HALF_FLOAT ([#10999](https://github.com/opensearch-project/OpenSearch/pull/10999))
128127
- Refactor common parts from the Rounding class into a separate 'round' package ([#11023](https://github.com/opensearch-project/OpenSearch/issues/11023))
128+
- Performance improvement for MultiTerm Queries on Keyword fields ([#7057](https://github.com/opensearch-project/OpenSearch/issues/7057))
129129

130130
### Deprecated
131131

server/src/internalClusterTest/java/org/opensearch/search/SearchWeightedRoutingIT.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,9 @@ public void testShardRoutingWithNetworkDisruption_FailOpenEnabled() throws Excep
501501

502502
logger.info("--> creating network partition disruption");
503503
final String clusterManagerNode1 = internalCluster().getClusterManagerName();
504-
Set<String> nodesInOneSide = Stream.of(clusterManagerNode1, nodeMap.get("b").get(0)).collect(Collectors.toCollection(HashSet::new));
505-
Set<String> nodesInOtherSide = Stream.of(nodeMap.get("a").get(0)).collect(Collectors.toCollection(HashSet::new));
504+
Set<String> nodesInOneSide = Stream.of(nodeMap.get("a").get(0)).collect(Collectors.toCollection(HashSet::new));
505+
Set<String> nodesInOtherSide = Stream.of(clusterManagerNode1, nodeMap.get("b").get(0), nodeMap.get("c").get(0))
506+
.collect(Collectors.toCollection(HashSet::new));
506507

507508
NetworkDisruption networkDisruption = new NetworkDisruption(
508509
new NetworkDisruption.TwoPartitions(nodesInOneSide, nodesInOtherSide),
@@ -870,8 +871,7 @@ private void assertSearchInAZ(String az) {
870871
SearchStats.Stats searchStats = stat.getIndices().getSearch().getTotal();
871872
if (stat.getNode().isDataNode()) {
872873
if (stat.getNode().getId().equals(dataNodeId)) {
873-
Assert.assertTrue(searchStats.getFetchCount() > 0L);
874-
Assert.assertTrue(searchStats.getQueryCount() > 0L);
874+
Assert.assertTrue(searchStats.getFetchCount() > 0L || searchStats.getQueryCount() > 0L);
875875
}
876876
}
877877
}
@@ -945,7 +945,6 @@ public void testSearchAggregationWithNetworkDisruption_FailOpenEnabled() throws
945945
}
946946

947947
logger.info("--> network disruption is stopped");
948-
networkDisruption.stopDisrupting();
949948

950949
for (int i = 0; i < 50; i++) {
951950
try {
@@ -962,6 +961,8 @@ public void testSearchAggregationWithNetworkDisruption_FailOpenEnabled() throws
962961
fail("search should not fail");
963962
}
964963
}
964+
networkDisruption.stopDisrupting();
965+
965966
assertSearchInAZ("b");
966967
assertSearchInAZ("c");
967968
assertNoSearchInAZ("a");

0 commit comments

Comments
 (0)