Merge "BUG 2584 : Datastore is ready when all local shards have a leader"
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / utils / MessageTracker.java
index 2757d2f5f68eef469361bd940866d2705b5494cc..74e61c189f828bb9228152ada1dedae2b16c53e3 100644 (file)
@@ -217,7 +217,8 @@ public class MessageTracker {
         boolean done = true;
 
         public void reset(){
-            Preconditions.checkState(done);
+            Preconditions.checkState(done,
+                    String.format("Trying to reset a context that is not done (%s). currentMessage = %s", done, currentMessage));
             done = false;
             stopwatch.reset().start();
         }