You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Nandakumar (Jira)" <ji...@apache.org> on 2025/06/15 08:26:00 UTC

[jira] [Created] (RATIS-2310) Implement hashCode and equals for SizeInBytes class

Nandakumar created RATIS-2310:
---------------------------------

             Summary: Implement hashCode and equals for SizeInBytes class
                 Key: RATIS-2310
                 URL: https://issues.apache.org/jira/browse/RATIS-2310
             Project: Ratis
          Issue Type: Improvement
          Components: common
            Reporter: Nandakumar
            Assignee: Nandakumar


Since {{SizeInBytes}} doesn't have {{equals}} method implemented, two different objects of {{SizeInBytes}} with same value are considered different. This is causing flood in the logs as {{ConfUtils#isNew}} method considers the same value of {{SizeInBytes}} as different.
Ref: RATIS-2229

{code}
2025-06-15 00:30:18 INFO  RaftServerConfigKeys:63 - raft.server.log.appender.buffer.byte-limit = 32m (=33554432) (custom)
2025-06-15 00:30:18 INFO  RaftServerConfigKeys:63 - raft.server.log.appender.buffer.byte-limit = 32m (=33554432) (custom)
2025-06-15 00:30:18 INFO  RaftServerConfigKeys:63 - raft.server.log.appender.buffer.byte-limit = 32m (=33554432) (custom)
2025-06-15 00:30:18 INFO  RaftServerConfigKeys:63 - raft.server.log.appender.buffer.byte-limit = 32m (=33554432) (custom)
2025-06-15 00:30:18 INFO  RaftServerConfigKeys:63 - raft.server.log.appender.buffer.byte-limit = 32m (=33554432) (custom)
2025-06-15 00:30:18 INFO  RaftServerConfigKeys:63 - raft.server.log.appender.buffer.byte-limit = 32m (=33554432) (custom)
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)