Explorar el Código

ZOOKEEPER-3863: Fix c client unit test (local session must be enabled for read only observers to work).

Problem

ZOOKEEPER-3863 requires local session to be enabled for read only server to work. When merge ZOOKEEPER-3863 (in c47ef905e077184bc5b7f555a3e2dfeb6dc046e1), we only updated Java tests, and missed C tests. As a result, Jenkins build is broken.

Solution

Enable local session for C client tests.

Notes
This was not caught by Jenkins when we merge ZOOKEEPER-3863 because previous Jenkins was testing master branch (as discussed in https://github.com/apache/zookeeper/pull/1460).

Author: Michael Han <lhan@twitter.com>

Reviewers: Enrico Olivelli <eolivelli@gmail.com>

Closes #1462 from hanm/fixme
Michael Han hace 4 años
padre
commit
4a2d58219b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      zookeeper-client/zookeeper-client-c/tests/zoo.cfg

+ 1 - 0
zookeeper-client/zookeeper-client-c/tests/zoo.cfg

@@ -3,6 +3,7 @@ initLimit=10
 syncLimit=5
 dataDir=TMPDIR/zkdata
 maxClientCnxns=MAXCLIENTCONNECTIONS
+localSessionsEnabled=true
 
 clientPort=CLIENTPORT
 secureClientPort=22281