You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[client-v2] Add more tests for compression / make code more protective #3321
clientModule: the client (client-v2; with legacy: the v1 client)connectivityArea: connection, TLS, pool, timeouts, cancellation, transport, compressionenhancementjdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)native-protocolNative code: the native TCP protocol (packets, revisions, compressed blocks)planned_workWork that is planned for nearest release. Good to take
Recommendation: Keep open — finish PR #3322
PR #3322 closes this issue and covers both points: round-trip tests with random rows for LZ4 and ZSTD, and checks of the block sizes and the stream end, with one exception type. Before a merge, it needs a fix for its merge conflict with main (ClientConfigProperties.java) and for the unresolved Cursor Bugbot finding that fails the AI review gate.
Status on main: Not supported on main — code read at 8480ca001: CompressedBlockInputStream has no size checks and throws three exception types.
Breaking change: Yes — in PR Improve compression handling #3322, failed compressed reads throw DataTransferException in place of IOException, EOFException, or ClientException, as its 0.12.0 migration notes say. New tests alone break nothing.
Analysis:refill takes both block sizes from the header and allocates them with no range check, before it verifies the checksum (CompressedBlockInputStream.java:124-129, 141, 146-147). Its failures are an IOException (line 89), a ClientException (lines 120, 143), or an EOFException (line 138). On main, the only test with random data is one unit test of the output stream (CompressedBlockOutputStreamTest.java:60).
Automated triage by Polyglot AI. A maintainer makes the final decision.
clientModule: the client (client-v2; with legacy: the v1 client)connectivityArea: connection, TLS, pool, timeouts, cancellation, transport, compressionenhancementjdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)native-protocolNative code: the native TCP protocol (packets, revisions, compressed blocks)planned_workWork that is planned for nearest release. Good to take
Activity
polyglotAI-bot commentedon Nov 27, 2026
Recommendation: Keep open — finish PR #3322
PR #3322 closes this issue and covers both points: round-trip tests with random rows for LZ4 and ZSTD, and checks of the block sizes and the stream end, with one exception type. Before a merge, it needs a fix for its merge conflict with
main(ClientConfigProperties.java) and for the unresolved Cursor Bugbot finding that fails the AI review gate.main: Not supported on main — code read at8480ca001:CompressedBlockInputStreamhas no size checks and throws three exception types.DataTransferExceptionin place ofIOException,EOFException, orClientException, as its 0.12.0 migration notes say. New tests alone break nothing.Analysis:
refilltakes both block sizes from the header and allocates them with no range check, before it verifies the checksum (CompressedBlockInputStream.java:124-129,141,146-147). Its failures are anIOException(line 89), aClientException(lines 120, 143), or anEOFException(line 138). Onmain, the only test with random data is one unit test of the output stream (CompressedBlockOutputStreamTest.java:60).Automated triage by Polyglot AI. A maintainer makes the final decision.