Skip to content

Commit 2f9b7d3

Browse files
committed
Merge pull request #463 from depay/master
Forbid using canBeReadonly when connecting zookeeper
2 parents f6ca831 + c2c0c5c commit 2f9b7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/apache/mesos/chronos/scheduler/config/ZookeeperModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ZookeeperModule(val config: SchedulerConfiguration with HttpConf)
3131
def provideZookeeperClient(): CuratorFramework = {
3232
val curator = CuratorFrameworkFactory.builder()
3333
.connectionTimeoutMs(config.zooKeeperTimeout().toInt)
34-
.canBeReadOnly(true)
34+
.canBeReadOnly(false)
3535
.connectString(validateZkServers())
3636
.retryPolicy(new ExponentialBackoffRetry(1000, 10))
3737
.build()

0 commit comments

Comments
 (0)