You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2019/08/19 10:22:11 UTC

[GitHub] [zookeeper] maoling opened a new pull request #1057: ZOOKEEPER-3506:correct the javaDoc of the SessionTrackerImpl#initializeNextSessionId

maoling opened a new pull request #1057: ZOOKEEPER-3506:correct the javaDoc of the SessionTrackerImpl#initializeNextSessionId
URL: https://github.com/apache/zookeeper/pull/1057
 
 
   - A analyst of this method
   suppose that current timestamp:1566197268432(10110110010101000101000011011111111010000), myid=1
   
   ```
    00000000 00000000 00000001 01101100 10101000 10100001 10111111 11010000
   <<24
    01101100 10101000 10100001 10111111 11010000 00000000 00000000 00000000
    >>>8
    00000000 01101100 10101000 10100001 10111111 11010000 00000000 00000000
   |
    00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000(id << 56)
   =
    00000001 01101100 10101000 10100001 10111111 11010000 00000000 00000000
   ```
   
   - more details in the [ZOOKEEPER-3506](https://issues.apache.org/jira/browse/ZOOKEEPER-3506)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services