Phillippko commented on code in PR #7969:
URL: https://github.com/apache/ignite-3/pull/7969#discussion_r3077359238
##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/storage/segstore/SegmentFile.java:
##########
@@ -283,7 +283,8 @@ private void sync(int upToPosition) {
int nextPos = pos + size;
- if (nextPos > buffer.limit()) {
+ // nextPos < 0 detects integer overflow (pos >= 0 and size > 0).
Review Comment:
leads to failure of benchmarks, small fix, so doing here
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]