Skip to content

[client-v2] Add more tests for compression / make code more protective #3321

Description

@chernser

Description

Compression code is one of the complex parts but lacks of:

  • tests with random data set
  • additional checks to catch errors and throw proper exception

Activity

  1. added this to the 0.12.0 milestone on Nov 10, 2026
  2. added
    client
    jdbc
    connectivity
    on Nov 10, 2026
  3. modified the milestone: 0.12.0 on Nov 10, 2026
  4. self-assigned this
    on Nov 17, 2026
  5. added
    planned_work
    on Nov 18, 2026
  6. polyglotAI-bot commented on Nov 27, 2026

    @polyglotAI-bot
    Collaborator

    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.

    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.

  7. added
    native-protocol
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

clientconnectivityenhancementjdbcnative-protocolplanned_work

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions