fix for SOLR-3770: Overseer may lose updates to cluster state

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sami Siren 2012-08-30 11:48:02 +00:00
parent 288926a15f
commit 883323f166
2 changed files with 3 additions and 2 deletions

View File

@ -88,6 +88,7 @@ Bug Fixes
* SOLR-3745: Proper error reporting if SolrCloud mode is used w/o
necessary "_version_" field in schema.xml (hossman)
* SOLR-3770: Overseer may lose updates to cluster state (siren)
Other Changes
----------------------

View File

@ -126,8 +126,8 @@ public class Overseer {
final String operation = message.get(QUEUE_OPERATION);
clusterState = processMessage(clusterState, message, operation);
byte[] processed = stateUpdateQueue.remove();
workQueue.offer(processed);
workQueue.offer(head);
stateUpdateQueue.remove();
head = stateUpdateQueue.peek();
}
zkClient.setData(ZkStateReader.CLUSTER_STATE,