mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 12:05:36 +00:00
SOLR-14058: fix peersync bounds check iterating over versions
This commit is contained in:
parent
8d95df364f
commit
c2125f331b
@ -132,6 +132,9 @@ Bug Fixes
|
||||
|
||||
* SOLR-14038: Admin UI display for "state.json" should be in a scollable region (Kevin Risden)
|
||||
|
||||
* SOLR-14058: Fix IndexOutOfBoundsException in PeerSync that can prevent nodes from recovering
|
||||
under certain circumstances. (yonik)
|
||||
|
||||
Other Changes
|
||||
---------------------
|
||||
|
||||
|
@ -746,7 +746,7 @@ public class PeerSync implements SolrMetricProducer {
|
||||
ourUpdatesIndex--;
|
||||
} else {
|
||||
long rangeStart = otherVersions.get(otherUpdatesIndex);
|
||||
while ((otherUpdatesIndex < otherVersions.size())
|
||||
while (otherUpdatesIndex >= 0
|
||||
&& (Math.abs(otherVersions.get(otherUpdatesIndex)) < Math.abs(ourUpdates.get(ourUpdatesIndex)))) {
|
||||
otherUpdatesIndex--;
|
||||
totalRequestedVersions++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user