You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by HeartSaVioR <gi...@git.apache.org> on 2018/01/18 06:42:10 UTC
[GitHub] storm issue #2517: [STORM-2901] Reuse ZK connection for getKeySequenceNumber
Github user HeartSaVioR commented on the issue:
https://github.com/apache/storm/pull/2517
Nice finding!
Btw, according to Curator web site, each process (nimbus, supervisor, worker, etc.) can share singleton curator framework instance since it's thread-safe.
http://curator.apache.org/curator-framework/
> CuratorFrameworks are allocated using the CuratorFrameworkFactory which provides both factory methods and a builder for creating instances. IMPORTANT: CuratorFramework instances are fully thread-safe. You should share one CuratorFramework per ZooKeeper cluster in your application.
We are using Curator 4.0 both master and 1.x branch, hence we are good to apply this.
---