This is an automated email from the ASF dual-hosted git repository.

alexpl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 8071692  IGNITE-12388 Fixed flaky 
ZookeeperDiscoveryClientReconnectTest.testReconnectServersRestart_3 - Fixes 
#7064.
8071692 is described below

commit 80716921a0b95588b9a33644a0146739b8e13f8b
Author: NSAmelchev <[email protected]>
AuthorDate: Tue Nov 26 11:13:37 2019 +0300

    IGNITE-12388 Fixed flaky 
ZookeeperDiscoveryClientReconnectTest.testReconnectServersRestart_3 - Fixes 
#7064.
    
    Signed-off-by: Aleksey Plekhanov <[email protected]>
---
 .../discovery/zk/internal/ZookeeperDiscoveryClientReconnectTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/modules/zookeeper/src/test/java/org/apache/ignite/spi/discovery/zk/internal/ZookeeperDiscoveryClientReconnectTest.java
 
b/modules/zookeeper/src/test/java/org/apache/ignite/spi/discovery/zk/internal/ZookeeperDiscoveryClientReconnectTest.java
index 03daa01..d196cb9 100644
--- 
a/modules/zookeeper/src/test/java/org/apache/ignite/spi/discovery/zk/internal/ZookeeperDiscoveryClientReconnectTest.java
+++ 
b/modules/zookeeper/src/test/java/org/apache/ignite/spi/discovery/zk/internal/ZookeeperDiscoveryClientReconnectTest.java
@@ -75,7 +75,7 @@ public class ZookeeperDiscoveryClientReconnectTest extends 
ZookeeperDiscoverySpi
             @Override public Void call() throws Exception {
                 int threadIdx = idx.getAndIncrement();
 
-                helper.clientModeThreadLocal(threadIdx == srvIdx || 
ThreadLocalRandom.current().nextBoolean());
+                helper.clientModeThreadLocal(threadIdx != srvIdx && 
ThreadLocalRandom.current().nextBoolean());
 
                 startGrid(threadIdx);
 

Reply via email to