Skip to content

Conversation

@wayneli-vt
Copy link
Contributor

Purpose

This PR fixes a flaky unit test caused by Spark’s asynchronous QueryExecutionListener callbacks. The previous implementation could iterate over a mutable collection while the listener thread was still appending, leading to ConcurrentModificationException. The fix waits for the expected plan via CountDownLatch before asserting.

Tests

API and Format

Documentation

@wayneli-vt wayneli-vt closed this Dec 28, 2025
@wayneli-vt wayneli-vt reopened this Dec 28, 2025
@wayneli-vt wayneli-vt closed this Dec 28, 2025
@wayneli-vt wayneli-vt reopened this Dec 28, 2025
@JingsongLi
Copy link
Contributor

+1 Thanks @wayneli-vt

@JingsongLi JingsongLi merged commit 55e4d28 into apache:master Dec 28, 2025
51 of 69 checks passed
@wayneli-vt
Copy link
Contributor Author

Thank you for your review!

jerry-024 added a commit to jerry-024/paimon that referenced this pull request Dec 29, 2025
* upstream/master: (51 commits)
  [test] Fix unstable test: handle MiniCluster shutdown gracefully in collect method (apache#6913)
  [python] fix ray dataset not lazy loading issue when parallelism = 1 (apache#6916)
  [core] Refactor ExternalPathProviders abstraction
  [spark] fix Merge Into unstable tests (apache#6912)
  [core] Enable Entropy Inject for data file path to prevent being throttled by object storage (apache#6832)
  [iceberg] support millisecond timestamps in iceberg compatibility mode (apache#6352)
  [spark] Handle NPE for pushdown aggregate when a datasplit has a null max/min value (apache#6611)
  [test] Fix unstable case testLimitPushDown
  [core] Refactor row id pushdown to DataEvolutionFileStoreScan
  [spark] paimon-spark supports row id push down (apache#6697)
  [spark] Support compact_database procedure (apache#6328) (apache#6910)
  [lucene] Fix row count in IndexManifestEntry
  [test] Remove unstable test: AppendTableITCase.testFlinkMemoryPool
  [core] Refactor Global index writer and reader for Btree
  [core] Minor refactor to magic number into footer
  [core] Support btree global index in paimon-common (apache#6869)
  [spark] Optimize compact for data-evolution table, commit multiple times to avoid out of memory (apache#6907)
  [rest] Add fromSnapshot to rollback (apache#6905)
  [test] Fix unstable RowTrackingTestBase test
  [core] Simplify FileStoreCommitImpl to extract some classes (apache#6904)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants