franz1981 commented on a change in pull request #3610:
URL: https://github.com/apache/activemq-artemis/pull/3610#discussion_r646003861
##########
File path:
artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
##########
@@ -323,20 +325,26 @@ public JournalImpl setHistoryFolder(File historyFolder,
long maxBytes, long peri
private final ReadWriteLock journalLock = new ReentrantReadWriteLock();
private final ReadWriteLock compactorLock = new ReentrantReadWriteLock();
- HashSet<Integer> replaceableRecords;
+ ByteObjectHashMap<Byte> replaceableRecords;
Review comment:
Given that I don't know if it's an hot path I am already happy with the
PR as it is: this one is just an improvement, given that we are already
changing collection.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]