[
https://issues.apache.org/jira/browse/SLIDER-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15469700#comment-15469700
]
Gour Saha commented on SLIDER-1166:
-----------------------------------
[~elserj] the synchronized init method will synchronize only against the other
synchronized close method for a specific instance of ZKIntegration. Since a
ZKIntegration object is created for every single destroy command it will not
synchronize against multiple ZKIntegration objects, all of which are now trying
to read/write to zkSessions. Hence the need for the synchronized block on
zkSessions.
> Every cluster stop operation creates and holds on to a zk session
> -----------------------------------------------------------------
>
> Key: SLIDER-1166
> URL: https://issues.apache.org/jira/browse/SLIDER-1166
> Project: Slider
> Issue Type: Bug
> Components: client
> Affects Versions: Slider 0.91
> Reporter: Billie Rinaldi
> Assignee: Billie Rinaldi
> Priority: Critical
> Fix For: Slider 1.0.0
>
> Attachments: SLIDER-1166.1.patch, SLIDER-1166.2.patch,
> SLIDER-1166.3.patch
>
>
> We aren't closing the zookeeper client, leaving it to expire and keep the
> session open much longer than is necessary.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)