fluent-logger-java icon indicating copy to clipboard operation
fluent-logger-java copied to clipboard

Use LinkedHashMap for deterministic iteration order

Open Yilinwang opened this issue 5 years ago • 0 comments

The test org.fluentd.logger.sender.TestRawSocketSender#testReconnectAfterBufferFull can fail due to a different iteration order of HashMap.

The fix is to change HaskMap to LinkedHashMap so that the iteration order remains stable and the failure will not occur any more. In this way, the test will be more stable.

Yilinwang avatar Dec 02 '20 22:12 Yilinwang