[ANNOUNCE] Apache Curator 2.13.0 released

2018-12-05 Thread Cameron McKenzie
Hello,

The Apache Curator team is pleased to announce the release of version
2.13.0. Apache Curator is a Java/JVM client library for Apache
ZooKeeper[1], a distributed coordination service. Apache Curator includes a
high-level API framework and utilities to make using Apache ZooKeeper much
easier and more reliable.

It also includes recipes for common use cases and extensions such as
service discovery and a Java 8 asynchronous DSL. For more details, please
visit the project website:
http://curator.apache.org/

This is a maintenance release containing a back port for CURATOR-409

Link to release notes:
*https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12314425&version=12339848
*

The most recent source release can be obtained from an Apache Mirror:
http://www.apache.org/dyn/closer.cgi/curator/
(mirror sync times may vary)

The binary artifacts for Curator are available from Maven Central and its
mirrors.

For general information on Apache Curator, please visit the project website:
http://curator.apache.org

Regards,
The Curator Team

[1] Apache ZooKeeper https://zookeeper.apache.org/


Jenkins build is still unstable: Curator » Curator Framework #55

2018-12-05 Thread Apache Jenkins Server
See 




Jenkins build is unstable: Curator » Curator Recipes #55

2018-12-05 Thread Apache Jenkins Server
See 




Build failed in Jenkins: Curator » Curator ZooKeeper 3.4 Testing #55

2018-12-05 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Curator ZooKeeper 3.4 Testing 4.0.2-SNAPSHOT
[INFO] 
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/zookeeper/zookeeper/3.4.8/zookeeper-3.4.8.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/zookeeper/zookeeper/3.4.8/zookeeper-3.4.8.jar
 (786 KB at 12472.1 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ curator-test-zk34 
---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:copy-resources 
(copy-curator-test-classes) @ curator-test-zk34 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ curator-test-zk34 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
curator-test-zk34 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ 
curator-test-zk34 ---
[INFO] No sources to compile
[INFO] 
[INFO] >>> clirr-maven-plugin:2.8:check (default) > compile @ curator-test-zk34 
>>>
[INFO] 
[INFO] --- maven-resources-plugin:2.7:copy-resources 
(copy-curator-test-classes) @ curator-test-zk34 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ curator-test-zk34 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
curator-test-zk34 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource to META-INF
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ 
curator-test-zk34 ---
[INFO] No sources to compile
[WARNING] Failed to getClass for org.codehaus.mojo.clirr.ClirrCheckMojo
[CHECKSTYLE] No report found for mojo check
[INFO] 
[INFO] <<< clirr-maven-plugin:2.8:check (default) < compile @ curator-test-zk34 
<<<
[INFO] 
[INFO] --- clirr-maven-plugin:2.8:check (default) @ curator-test-zk34 ---
[INFO] artifact org.apache.curator:curator-test-zk34: checking for updates from 
Nexus
[INFO] artifact org.apache.curator:curator-test-zk34: checking for updates from 
central
[INFO] Comparing to version: 4.0.1
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/curator/curator-test-zk34/4.0.1/curator-test-zk34-4.0.1.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/curator/curator-test-zk34/4.0.1/curator-test-zk34-4.0.1.jar
 (8 KB at 43.1 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/curator/curator-test-zk34/4.0.1/curator-test-zk34-4.0.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/curator/curator-test-zk34/4.0.1/curator-test-zk34-4.0.1.pom
 (8 KB at 32.1 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/curator/curator-recipes/4.0.1/curator-recipes-4.0.1-tests.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/curator/curator-recipes/4.0.1/curator-recipes-4.0.1-tests.jar
 (402 KB at 1284.0 KB/sec)
[INFO] Succeeded with 0 errors; 0 warnings; and 0 other changes.
[CHECKSTYLE] No report found for mojo check[INFO] 
[INFO] --- maven-bundle-plugin:3.2.0:manifest (bundle-manifest) @ 
curator-test-zk34 ---

[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
curator-test-zk34 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ 
curator-test-zk34 ---
[INFO] Compiling 6 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ curator-test-zk34 
---

---
 T E S T S
---
Running org.apache.curator.test.TestCompatibility
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.194 sec - in 
org.apache.curator.test.TestCompatibility
Running org.apache.curator.framework.imps.TestTransactionsOld
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.65 sec - in 
org.apache.curator.framework.imps.TestTransactionsOld
Running org.apache.curator.framework.imps.TestCleanState
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.2 sec - in 
org.apache.curator.fr

Build failed in Jenkins: Curator #55

2018-12-05 Thread Apache Jenkins Server
See 

Changes:

[joshgr] CURATOR-489: CreateBuilderImpl assigns protectedId if doProtected is

[randgalt] Added test for async create protected

[joshgr] expanded async-create-protected test to verify protectedId

--
[...truncated 1.51 MB...]
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/curator/curator-recipes/4.0.1/curator-recipes-4.0.1-tests.jar
 (402 KB at 1284.0 KB/sec)
[INFO] Succeeded with 0 errors; 0 warnings; and 0 other changes.
[CHECKSTYLE] No report found for mojo check[INFO] 
[INFO] --- maven-bundle-plugin:3.2.0:manifest (bundle-manifest) @ 
curator-test-zk34 ---

[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
curator-test-zk34 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ 
curator-test-zk34 ---
[INFO] Compiling 6 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ curator-test-zk34 
---

---
 T E S T S
---
Running org.apache.curator.test.TestCompatibility
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.194 sec - in 
org.apache.curator.test.TestCompatibility
Running org.apache.curator.framework.imps.TestTransactionsOld
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.65 sec - in 
org.apache.curator.framework.imps.TestTransactionsOld
Running org.apache.curator.framework.imps.TestCleanState
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.2 sec - in 
org.apache.curator.framework.imps.TestCleanState
Running org.apache.curator.framework.imps.TestReadOnly
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 51.269 sec - in 
org.apache.curator.framework.imps.TestReadOnly
Running org.apache.curator.framework.imps.TestMultiClient
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.047 sec - in 
org.apache.curator.framework.imps.TestMultiClient
Running org.apache.curator.framework.imps.TestFrameworkEdges
Tests run: 19, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 293.953 sec 
<<< FAILURE! - in org.apache.curator.framework.imps.TestFrameworkEdges
testDeleteChildrenConcurrently(org.apache.curator.framework.imps.TestFrameworkEdges)
  Time elapsed: 60.572 sec  <<< FAILURE!
java.lang.AssertionError: expected [true] but found [false]
at 
org.apache.curator.framework.imps.TestFrameworkEdges.testDeleteChildrenConcurrently(TestFrameworkEdges.java:716)

Running org.apache.curator.framework.imps.TestRemoveWatches
Running org.apache.curator.framework.imps.TestNeverConnected
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.726 sec - in 
org.apache.curator.framework.imps.TestNeverConnected
Running org.apache.curator.framework.imps.TestTempFramework
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.269 sec - in 
org.apache.curator.framework.imps.TestTempFramework
Running org.apache.curator.framework.imps.TestExistsBuilder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.129 sec - in 
org.apache.curator.framework.imps.TestExistsBuilder
Running org.apache.curator.framework.imps.TestFailedDeleteManager
Running org.apache.curator.framework.imps.TestWatcherIdentity
Running org.apache.curator.framework.imps.TestEnabledSessionExpiredState
Running org.apache.curator.framework.imps.TestFramework
Running org.apache.curator.framework.imps.TestWithCluster
Running org.apache.curator.framework.imps.TestCreateReturningStat
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.355 sec - in 
org.apache.curator.framework.imps.TestCreateReturningStat
Running org.apache.curator.framework.imps.TestFrameworkBackground
Running org.apache.curator.framework.imps.TestCompression
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.38 sec - in 
org.apache.curator.framework.imps.TestCompression
Running org.apache.curator.framework.state.TestConnectionStateManager
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.274 sec - in 
org.apache.curator.framework.state.TestConnectionStateManager
Running org.apache.curator.framework.imps.TestNamespaceFacade
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.815 sec - in 
org.apache.curator.framework.imps.TestNamespaceFacade
Running org.apache.curator.framework.ensemble.TestEnsembleProvider
Running org.apache.curator.framework.imps.TestCreate
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.744 sec - in 
org.apache.curator.framework.imps.TestCreate
Running org.apache.curator.framework.imps.TestCompressionInTransactionOld
Tests run: 4, Failures: 0, Errors: 0, 

[jira] [Resolved] (CURATOR-489) CreateOption.doProtected uses null protectedId when applied via AsyncCreateBuilderImpl

2018-12-05 Thread Jordan Zimmerman (JIRA)


 [ 
https://issues.apache.org/jira/browse/CURATOR-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jordan Zimmerman resolved CURATOR-489.
--
   Resolution: Fixed
Fix Version/s: 4.1.0

> CreateOption.doProtected uses null protectedId when applied via 
> AsyncCreateBuilderImpl
> --
>
> Key: CURATOR-489
> URL: https://issues.apache.org/jira/browse/CURATOR-489
> Project: Apache Curator
>  Issue Type: Bug
>Affects Versions: 4.0.1
>Reporter: josh gruenberg
>Assignee: Jordan Zimmerman
>Priority: Major
> Fix For: 4.1.0
>
>
> When trying to apply "protection" to an async node-creation with
>  {{CreateOption.doProtected}}, the protection is undermined because the node 
> is created with {{protectionId = null}}.
> The {{AsyncCreateBuilderImpl}} does pass {{doProtected = true}} to the 
> {{CreateBuilderImpl}} constructor. However, this constructor (incorrectly?) 
> assigns {{protectedId = null}}, resulting in a node-prefix of {{_c_null-}} 
> (because {{getProtectedPrefix}} does not validate that the provided 
> {{protectedId}} is non-null). This entirely undermines the effectiveness of 
> the protection.
> {code:java}
> public CreateBuilderImpl(CuratorFrameworkImpl client, CreateMode 
> createMode, Backgrounding backgrounding, boolean createParentsIfNeeded, 
> boolean createParentsAsContainers, boolean doProtected, boolean compress, 
> boolean setDataIfExists, List aclList, Stat storingStat, long ttl)
> {
> this.client = client;
> this.createMode = createMode;
> this.backgrounding = backgrounding;
> this.createParentsIfNeeded = createParentsIfNeeded;
> this.createParentsAsContainers = createParentsAsContainers;
> this.doProtected = doProtected;
> this.compress = compress;
> this.setDataIfExists = setDataIfExists;
> protectedId = null; // *** incorrect if 
> doProtected?! ***
> this.acling = new ACLing(client.getAclProvider(), aclList);
> this.storingStat = storingStat;
> this.ttl = ttl;
> }
> {code}
> It looks to me as if that constructor should be assigning {{protectedId}} if 
> {{doProtected}} is true.
> I wonder if the {{doProtected}} field should just be eliminated in favor a 
> method that checks {{protectedId != null}}, to avoid this redundant encoding 
> of intent?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CURATOR-489) CreateOption.doProtected uses null protectedId when applied via AsyncCreateBuilderImpl

2018-12-05 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CURATOR-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16710349#comment-16710349
 ] 

ASF GitHub Bot commented on CURATOR-489:


Github user asfgit closed the pull request at:

https://github.com/apache/curator/pull/284


> CreateOption.doProtected uses null protectedId when applied via 
> AsyncCreateBuilderImpl
> --
>
> Key: CURATOR-489
> URL: https://issues.apache.org/jira/browse/CURATOR-489
> Project: Apache Curator
>  Issue Type: Bug
>Affects Versions: 4.0.1
>Reporter: josh gruenberg
>Assignee: Jordan Zimmerman
>Priority: Major
>
> When trying to apply "protection" to an async node-creation with
>  {{CreateOption.doProtected}}, the protection is undermined because the node 
> is created with {{protectionId = null}}.
> The {{AsyncCreateBuilderImpl}} does pass {{doProtected = true}} to the 
> {{CreateBuilderImpl}} constructor. However, this constructor (incorrectly?) 
> assigns {{protectedId = null}}, resulting in a node-prefix of {{_c_null-}} 
> (because {{getProtectedPrefix}} does not validate that the provided 
> {{protectedId}} is non-null). This entirely undermines the effectiveness of 
> the protection.
> {code:java}
> public CreateBuilderImpl(CuratorFrameworkImpl client, CreateMode 
> createMode, Backgrounding backgrounding, boolean createParentsIfNeeded, 
> boolean createParentsAsContainers, boolean doProtected, boolean compress, 
> boolean setDataIfExists, List aclList, Stat storingStat, long ttl)
> {
> this.client = client;
> this.createMode = createMode;
> this.backgrounding = backgrounding;
> this.createParentsIfNeeded = createParentsIfNeeded;
> this.createParentsAsContainers = createParentsAsContainers;
> this.doProtected = doProtected;
> this.compress = compress;
> this.setDataIfExists = setDataIfExists;
> protectedId = null; // *** incorrect if 
> doProtected?! ***
> this.acling = new ACLing(client.getAclProvider(), aclList);
> this.storingStat = storingStat;
> this.ttl = ttl;
> }
> {code}
> It looks to me as if that constructor should be assigning {{protectedId}} if 
> {{doProtected}} is true.
> I wonder if the {{doProtected}} field should just be eliminated in favor a 
> method that checks {{protectedId != null}}, to avoid this redundant encoding 
> of intent?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] curator pull request #284: CURATOR-489: CreateBuilderImpl assigns protectedI...

2018-12-05 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/curator/pull/284


---


[jira] [Commented] (CURATOR-489) CreateOption.doProtected uses null protectedId when applied via AsyncCreateBuilderImpl

2018-12-05 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CURATOR-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16710242#comment-16710242
 ] 

ASF GitHub Bot commented on CURATOR-489:


Github user joshng commented on the issue:

https://github.com/apache/curator/pull/284
  
Ok, that test is incorporated here now. 👍 


> CreateOption.doProtected uses null protectedId when applied via 
> AsyncCreateBuilderImpl
> --
>
> Key: CURATOR-489
> URL: https://issues.apache.org/jira/browse/CURATOR-489
> Project: Apache Curator
>  Issue Type: Bug
>Affects Versions: 4.0.1
>Reporter: josh gruenberg
>Assignee: Jordan Zimmerman
>Priority: Major
>
> When trying to apply "protection" to an async node-creation with
>  {{CreateOption.doProtected}}, the protection is undermined because the node 
> is created with {{protectionId = null}}.
> The {{AsyncCreateBuilderImpl}} does pass {{doProtected = true}} to the 
> {{CreateBuilderImpl}} constructor. However, this constructor (incorrectly?) 
> assigns {{protectedId = null}}, resulting in a node-prefix of {{_c_null-}} 
> (because {{getProtectedPrefix}} does not validate that the provided 
> {{protectedId}} is non-null). This entirely undermines the effectiveness of 
> the protection.
> {code:java}
> public CreateBuilderImpl(CuratorFrameworkImpl client, CreateMode 
> createMode, Backgrounding backgrounding, boolean createParentsIfNeeded, 
> boolean createParentsAsContainers, boolean doProtected, boolean compress, 
> boolean setDataIfExists, List aclList, Stat storingStat, long ttl)
> {
> this.client = client;
> this.createMode = createMode;
> this.backgrounding = backgrounding;
> this.createParentsIfNeeded = createParentsIfNeeded;
> this.createParentsAsContainers = createParentsAsContainers;
> this.doProtected = doProtected;
> this.compress = compress;
> this.setDataIfExists = setDataIfExists;
> protectedId = null; // *** incorrect if 
> doProtected?! ***
> this.acling = new ACLing(client.getAclProvider(), aclList);
> this.storingStat = storingStat;
> this.ttl = ttl;
> }
> {code}
> It looks to me as if that constructor should be assigning {{protectedId}} if 
> {{doProtected}} is true.
> I wonder if the {{doProtected}} field should just be eliminated in favor a 
> method that checks {{protectedId != null}}, to avoid this redundant encoding 
> of intent?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] curator issue #284: CURATOR-489: CreateBuilderImpl assigns protectedId if do...

2018-12-05 Thread joshng
Github user joshng commented on the issue:

https://github.com/apache/curator/pull/284
  
Ok, that test is incorporated here now. 👍 


---


Re: [RESULT] [VOTE] Release Apache Curator 2.13.0

2018-12-05 Thread Jordan Zimmerman
Did you send out an announcement email for this? See here: 
https://cwiki.apache.org/confluence/display/CURATOR/For+Curator+Committers#ForCuratorCommitters-apache-release-promote
 

 - need to send emails, Update the Apache Reporter Tool, etc.

-Jordan

> On Dec 3, 2018, at 4:08 PM, Cameron McKenzie  wrote:
> 
> Hello,
> 
> The vote to release Curator 2.13.0 has passed.
> 
> +1 (binding):
> 
>Jordan Zimmerman
>Cameron McKenzie
>Jay Zarfoss
> 
> +1 (non-binding):
> 
>Akira Ajisaka
>Kevin Risden
> 
> I will promote the artifacts to the central repo.



[jira] [Closed] (CURATOR-482) zookeeper exists waiting forever

2018-12-05 Thread zhaoziyan (JIRA)


 [ 
https://issues.apache.org/jira/browse/CURATOR-482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhaoziyan closed CURATOR-482.
-
Resolution: Not A Problem

> zookeeper exists waiting forever 
> -
>
> Key: CURATOR-482
> URL: https://issues.apache.org/jira/browse/CURATOR-482
> Project: Apache Curator
>  Issue Type: Bug
> Environment: server version 3.4.6
> zookeeper cient version 3.4.8 
> curator version curator-client-2.12
> linux 
>Reporter: zhaoziyan
>Assignee: Jordan Zimmerman
>Priority: Major
>
> exists waiting forever
> server version 3.4.6
> zookeeper cient version 3.4.8 
> curator version curator-client-2.12
> because of the exists waiting forever, cause the cutator TreeCache thread 
> block  
> {code:java}
> // code placeholder
> "ZZBOOK_UPDATE_JDID_JOB2_QuartzSchedulerThread" #781 prio=5 os_prio=0 
> tid=0x7f1a7611e800 nid=0x7661 in Object.wait() [0x7f1936cee000]
>  java.lang.Thread.State: WAITING (on object monitor)
>  at java.lang.Object.wait(Native Method)
>  at java.lang.Object.wait(Object.java:502)
>  at org.apache.zookeeper.ClientCnxn.submitRequest(ClientCnxn.java:1406)
>  - locked <0xa6d2a5c8> (a org.apache.zookeeper.ClientCnxn$Packet)
>  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1097)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:237)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:226)
>  at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForegroundStandard(ExistsBuilderImpl.java:223)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForeground(ExistsBuilderImpl.java:216)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:175)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:32)
>  at 
> com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter.isExisted(ZookeeperRegistryCenter.java:210)
>  at 
> com.dangdang.ddframe.job.lite.internal.storage.JobNodeStorage.isJobNodeExisted(JobNodeStorage.java:66)
>  at 
> com.dangdang.ddframe.job.lite.internal.storage.JobNodeStorage.createJobNodeIfNeeded(JobNodeStorage.java:107)
>  at 
> com.dangdang.ddframe.job.lite.internal.execution.ExecutionService.setMisfire(ExecutionService.java:189)
>  at 
> com.dangdang.ddframe.job.lite.internal.schedule.JobTriggerListener.triggerMisfired(JobTriggerListener.java:47)
>  at 
> org.quartz.core.QuartzScheduler.notifyTriggerListenersMisfired(QuartzScheduler.java:1905)
>  at 
> org.quartz.core.SchedulerSignalerImpl.notifyTriggerListenersMisfired(SchedulerSignalerImpl.java:74)
>  at org.quartz.simpl.RAMJobStore.applyMisfire(RAMJobStore.java:1354)
>  at org.quartz.simpl.RAMJobStore.acquireNextTriggers(RAMJobStore.java:1412)
>  - locked <0xc4c9fb10> (a java.lang.Object)
>  at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:272)
> "ZZBOOK_UPDATE_JDID_JOB2_Worker-1" #780 prio=5 os_prio=0 
> tid=0x7f1a7611d000 nid=0x7660 in Object.wait() [0x7f1936ef]
>  java.lang.Thread.State: TIMED_WAITING (on object monitor)
>  at java.lang.Object.wait(Native Method)
>  at 
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
>  - locked <0xc4c228c8> (a java.lang.Object)
> "Curator-TreeCache-77" #779 daemon prio=5 os_prio=0 tid=0x7f19a4091000 
> nid=0x765f waiting for monitor entry [0x7f1936def000]
>  java.lang.Thread.State: BLOCKED (on object monitor)
>  at org.quartz.simpl.RAMJobStore.storeTrigger(RAMJobStore.java:413)
>  - waiting to lock <0xc4c9fb10> (a java.lang.Object)
>  at org.quartz.core.QuartzScheduler.triggerJob(QuartzScheduler.java:1187)
>  at org.quartz.impl.StdScheduler.triggerJob(StdScheduler.java:341)
>  at org.quartz.impl.StdScheduler.triggerJob(StdScheduler.java:331)
>  at 
> com.dangdang.ddframe.job.lite.internal.schedule.JobScheduleController.triggerJob(JobScheduleController.java:153)
>  at 
> com.dangdang.ddframe.job.lite.internal.server.JobOperationListenerManager$JobTriggerStatusJobListener.dataChanged(JobOperationListenerManager.java:103)
>  at 
> com.dangdang.ddframe.job.lite.internal.listener.AbstractJobListener.childEvent(AbstractJobListener.java:43)
>  at 
> org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:741)
>  at 
> org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:735)
>  at 
> org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:93)
>  at 
> org.apache.curator.shaded.com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297)
>  at 
> org.apache.curator.framework.listen.ListenerContainer.forEach(Liste

[jira] [Commented] (CURATOR-482) zookeeper exists waiting forever

2018-12-05 Thread zhaoziyan (JIRA)


[ 
https://issues.apache.org/jira/browse/CURATOR-482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709835#comment-16709835
 ] 

zhaoziyan commented on CURATOR-482:
---

sorry , I have found is not the curator have problem , but A another thread 
call client in a loop .

> zookeeper exists waiting forever 
> -
>
> Key: CURATOR-482
> URL: https://issues.apache.org/jira/browse/CURATOR-482
> Project: Apache Curator
>  Issue Type: Bug
> Environment: server version 3.4.6
> zookeeper cient version 3.4.8 
> curator version curator-client-2.12
> linux 
>Reporter: zhaoziyan
>Assignee: Jordan Zimmerman
>Priority: Major
>
> exists waiting forever
> server version 3.4.6
> zookeeper cient version 3.4.8 
> curator version curator-client-2.12
> because of the exists waiting forever, cause the cutator TreeCache thread 
> block  
> {code:java}
> // code placeholder
> "ZZBOOK_UPDATE_JDID_JOB2_QuartzSchedulerThread" #781 prio=5 os_prio=0 
> tid=0x7f1a7611e800 nid=0x7661 in Object.wait() [0x7f1936cee000]
>  java.lang.Thread.State: WAITING (on object monitor)
>  at java.lang.Object.wait(Native Method)
>  at java.lang.Object.wait(Object.java:502)
>  at org.apache.zookeeper.ClientCnxn.submitRequest(ClientCnxn.java:1406)
>  - locked <0xa6d2a5c8> (a org.apache.zookeeper.ClientCnxn$Packet)
>  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1097)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:237)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:226)
>  at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForegroundStandard(ExistsBuilderImpl.java:223)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForeground(ExistsBuilderImpl.java:216)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:175)
>  at 
> org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:32)
>  at 
> com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter.isExisted(ZookeeperRegistryCenter.java:210)
>  at 
> com.dangdang.ddframe.job.lite.internal.storage.JobNodeStorage.isJobNodeExisted(JobNodeStorage.java:66)
>  at 
> com.dangdang.ddframe.job.lite.internal.storage.JobNodeStorage.createJobNodeIfNeeded(JobNodeStorage.java:107)
>  at 
> com.dangdang.ddframe.job.lite.internal.execution.ExecutionService.setMisfire(ExecutionService.java:189)
>  at 
> com.dangdang.ddframe.job.lite.internal.schedule.JobTriggerListener.triggerMisfired(JobTriggerListener.java:47)
>  at 
> org.quartz.core.QuartzScheduler.notifyTriggerListenersMisfired(QuartzScheduler.java:1905)
>  at 
> org.quartz.core.SchedulerSignalerImpl.notifyTriggerListenersMisfired(SchedulerSignalerImpl.java:74)
>  at org.quartz.simpl.RAMJobStore.applyMisfire(RAMJobStore.java:1354)
>  at org.quartz.simpl.RAMJobStore.acquireNextTriggers(RAMJobStore.java:1412)
>  - locked <0xc4c9fb10> (a java.lang.Object)
>  at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:272)
> "ZZBOOK_UPDATE_JDID_JOB2_Worker-1" #780 prio=5 os_prio=0 
> tid=0x7f1a7611d000 nid=0x7660 in Object.wait() [0x7f1936ef]
>  java.lang.Thread.State: TIMED_WAITING (on object monitor)
>  at java.lang.Object.wait(Native Method)
>  at 
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
>  - locked <0xc4c228c8> (a java.lang.Object)
> "Curator-TreeCache-77" #779 daemon prio=5 os_prio=0 tid=0x7f19a4091000 
> nid=0x765f waiting for monitor entry [0x7f1936def000]
>  java.lang.Thread.State: BLOCKED (on object monitor)
>  at org.quartz.simpl.RAMJobStore.storeTrigger(RAMJobStore.java:413)
>  - waiting to lock <0xc4c9fb10> (a java.lang.Object)
>  at org.quartz.core.QuartzScheduler.triggerJob(QuartzScheduler.java:1187)
>  at org.quartz.impl.StdScheduler.triggerJob(StdScheduler.java:341)
>  at org.quartz.impl.StdScheduler.triggerJob(StdScheduler.java:331)
>  at 
> com.dangdang.ddframe.job.lite.internal.schedule.JobScheduleController.triggerJob(JobScheduleController.java:153)
>  at 
> com.dangdang.ddframe.job.lite.internal.server.JobOperationListenerManager$JobTriggerStatusJobListener.dataChanged(JobOperationListenerManager.java:103)
>  at 
> com.dangdang.ddframe.job.lite.internal.listener.AbstractJobListener.childEvent(AbstractJobListener.java:43)
>  at 
> org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:741)
>  at 
> org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:735)
>  at 
> org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:93)
>  at 
> org.apache.curator.shaded.com.google.common.util.concurrent.MoreExecutors$Sam