Skip to content

Commit 685e63f

Browse files
authored
Merge branch 'master' into master
2 parents b217605 + 96632ee commit 685e63f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/en/changes/changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Fix query continues profiling policies error when the policy is already in the cache.
99
* Support `hot/warm/cold` stages TTL query in the status API.
1010
* PromQL Service: traffic query support `limit` and regex match.
11+
* Fix an edge case of HashCodeSelector(Integer#MIN_VALUE causes ArrayIndexOutOfBoundsException).
1112
* Support Flink monitoring.
1213

1314
#### UI

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/remote/selector/HashCodeSelector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class HashCodeSelector implements RemoteClientSelector {
2727
@Override
2828
public RemoteClient select(List<RemoteClient> clients, StreamData streamData) {
2929
int size = clients.size();
30-
int selectIndex = Math.abs(streamData.remoteHashCode()) % size;
30+
int selectIndex = Math.abs(streamData.remoteHashCode() % size);
3131
return clients.get(selectIndex);
3232
}
3333
}

0 commit comments

Comments
 (0)