Saketa Chalamchala created HDDS-14337:
-----------------------------------------
Summary: SCM does not restart if it was first deployed near the
end of year
Key: HDDS-14337
URL: https://issues.apache.org/jira/browse/HDDS-14337
Project: Apache Ozone
Issue Type: Bug
Reporter: Saketa Chalamchala
Assignee: Saketa Chalamchala
SCM fails to restart after it is first deployed and started near the end of the
year, say on Dec 31, with the following error due to a Precondition fail that
check if `localId > UniqueId.next()`
- `localId`: Uses millisSinceEpoch << Short.SIZE (shift by 16 bits)
- `UniqueId.next()`: Uses currentTimeMillis << 10 (shift by 10 bits)
Since UniqueId.next() shifts by fewer bits and includes the current time, while
localId shifts by more bits but uses a future date (Jan 1st of next year), the
values can be very close or even inverted, especially near year boundaries.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]