Commit ea50fe3
authored
TestEventsListener - reduce memory pressure (#2724)
Only the last events are needed, so it's enough to keep only the last events by type. Also adds a `.clear()` function to clear the captured events for a deterministic (empty) state for each test case.
Also uses a thread-safe collection now.1 parent 80f0456 commit ea50fe3
File tree
3 files changed
+170
-158
lines changed- runtime/service/src
- main/java/org/apache/polaris/service/events/listeners
- test/java/org/apache/polaris/service/catalog/iceberg
3 files changed
+170
-158
lines changed
0 commit comments