Michael Han:

I'm using ZooKeeper 3.4.9 .
Will this problem be fixed in 3.4.X??


JiangJiafu




------------------ ???????? ------------------
??????: "Michael Han";<[email protected]>;
????????: 2017??5??3??(??????) ????11:50
??????: "dev"<[email protected]>; 

????: Re: Is it good for Session management to use system time ?



>> I think it may be better to use System.nanoTime() because it can achieve
the same goal without any problem.
Yes, and this has been fixed in ZOOKEEPER-1366 which is included in 3.5.1
and later versions. Which version of ZK you are using?

On Wed, May 3, 2017 at 1:09 AM, ?????? <[email protected]> wrote:

> Hi,
>
> I'm using ZooKeepr in a multi-node environment, I found that if the
> machine time changes, the ephemeral node may exist for a long time even
> that the client has disconnected with ZooKeeper server.
> I read the source code and I find that the SessionTracker use
> System.currentTimeMills() to record the time. I think it may be better to
> use System.nanoTime() because it can achieve the same goal without any
> problem.
> I don't know whether I'm right. Can anyone give me suggestions?
>
>
>
> JiangJiafu




-- 
Cheers
Michael.

Reply via email to