[improve][test] Add randomized TripleLongPriorityQueue correctness test
Motivation
TripleLongPriorityQueue relies on heap ordering across three long fields. The existing tests cover basic ordering cases, and this adds broader randomized coverage with a reproducible seed for interleaved add/pop sequences.
Modifications
- Add a randomized interleaved add/pop test against a JDK
PriorityQueueoracle. - Include edge-case tuple values such as
Long.MIN_VALUEandLong.MAX_VALUE. - Print the randomized test seed and support reproducing failures with
-Dpulsar.collections.randomSeed=<seed>.
Verification
./gradlew :pulsar-common:test --tests org.apache.pulsar.common.util.collections.TripleLongPriorityQueueTest -PtestRetryCount=0 -Dpulsar.collections.randomSeed=123456789./gradlew :pulsar-common:checkstyleTest
PR to restore fastutil is #26032
@void-ptr974 #26032 has been merged. Please rebase. I guess tests for removed classes are now unnecessary, but this PR does contain tests for classes that remain so it will be useful.
Thanks for the heads-up.
I removed the tests for the classes that no longer exist, so this PR now just adds the randomized coverage for TripleLongPriorityQueue.