PDGGK commented on PR #9474: URL: https://github.com/apache/paimon/pull/9474#issuecomment-5549954680
Fixed in `bc34b67e` — `catch (RuntimeException | Error e)`. Added `testConstructorReleasesTheFileWhenSetupThrowsAnError`, which reaches the same window through the constructor's one injectable collaborator: a `KeySerializer` whose `createComparator()` throws `OutOfMemoryError`. That runs after `out` is open and before `SstFileWriter` is built, so it exercises exactly the post-open setup failure you describe without depending on real direct-memory exhaustion. Reverting the catch to `RuntimeException` alone fails that one test and leaves the other three green. `mvn test -pl paimon-common -Dtest='org.apache.paimon.globalindex.**'` — 350 tests, all passing; `spotless:check` and `checkstyle:check` clean. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
