nandakumar131 opened a new pull request, #1272:
URL: https://github.com/apache/ratis/pull/1272

   ## What changes were proposed in this pull request?
   Implement hashCode and equals method for SizeInBytes class.
   
   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: #1200 
   
   ```
   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)
   ```
   
   ## What is the link to the Apache JIRA
   RATIS-2310
   
   ## How was this patch tested?
   Unit tests
   
   


-- 
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]

Reply via email to