zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maoling <...@git.apache.org>
Subject [GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over...
Date Mon, 05 Jun 2017 10:47:20 GMT
Github user maoling commented on the issue:

    Hi, @asdf2014 .Thanks for your explanation! But I still have some confusions about the
question one:
    look at code like this :
    int epoch = (int)Long.rotateRight(zxid, 32);// >> 32;
    long count = zxid & 0xffffffffffL;
    it all depends on that **zxid** can not be altered(no write operation when **zxid** has
generated at the first time) in the multithread situation,otherwise epoch and count isn't
idempotent.should **zxid** be decorated by **final**?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message