https://github.com/Netflix/atlas
Revision 2c50898f0861f96011ae5704ecd3ec146417ba06 authored by brharrington on 01 September 2022, 11:56:16 UTC, committed by GitHub on 01 September 2022, 11:56:16 UTC
Back port of #1452.

Before it was relying on `abs` to get a non-negative value
for computing an index to the array. This breaks when the
int value of the id is `Integer.MIN_VALUE`. Update it to
explicitly clear the sign bit to ensure the value will
always be non-negative.
1 parent 6b4665d
History
Tip revision: 2c50898f0861f96011ae5704ecd3ec146417ba06 authored by brharrington on 01 September 2022, 11:56:16 UTC
1.6: fix shard lookup for Integer.MIN_VALUE (#1459)
Tip revision: 2c50898

README.md

back to top