You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Marcus Eriksson (Jira)" <ji...@apache.org> on 2021/09/27 08:30:00 UTC

[jira] [Created] (CASSANDRA-16997) Handle timestamp wraparound for internode messages

Marcus Eriksson created CASSANDRA-16997:
-------------------------------------------

             Summary: Handle timestamp wraparound for internode messages
                 Key: CASSANDRA-16997
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16997
             Project: Cassandra
          Issue Type: Bug
            Reporter: Marcus Eriksson
            Assignee: Marcus Eriksson


In internode messaging we send the lower 4 bytes of the timestamp and then correct on receiving side if the local time has wrapped (every 50 days), but we currently don't correct the time if the sending side wrapped before us. 

This can cause us to use the wrong timestamp for the message and if the local System.nanoTime is < 50 days, we get a negative creation time which causes an AssertionError in MonitorableImpl



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org