From 3f87b0809eb52de81eaf0a547d28c8de2fe587ce Mon Sep 17 00:00:00 2001 From: Daniel Mitterdorfer Date: Thu, 17 Dec 2015 15:22:59 +0100 Subject: [PATCH] Fix visibility issue in RetryTests --- .../test/java/org/elasticsearch/action/bulk/RetryTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/action/bulk/RetryTests.java b/core/src/test/java/org/elasticsearch/action/bulk/RetryTests.java index 8f07b58fe6f..5728f7b54bc 100644 --- a/core/src/test/java/org/elasticsearch/action/bulk/RetryTests.java +++ b/core/src/test/java/org/elasticsearch/action/bulk/RetryTests.java @@ -126,9 +126,9 @@ public class RetryTests extends ESTestCase { private static class AssertingListener implements ActionListener { private final CountDownLatch latch; - private int countOnResponseCalled = 0; - private Throwable lastFailure; - private BulkResponse response; + private volatile int countOnResponseCalled = 0; + private volatile Throwable lastFailure; + private volatile BulkResponse response; private AssertingListener() { latch = new CountDownLatch(1);