Skip to content

master does not compile: FirebirdGetBlobSegmentCommandExecutorTest calls registerBlob with the old 3-arg signature #40150

Closed

Description

@rishi-rana

Bug Report

Which version of ShardingSphere did you use?

master @ 42a0e0a81ef1740432bf5ebaa3223eea7a658b8b

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy (Firebird dialect)

Expected behaviour

master builds.

Actual behaviour

master does not compile:

./mvnw -pl proxy/frontend/dialect/firebird -am -DskipTests -Dspotless.skip=true -Dcheckstyle.skip=true test-compile

[ERROR] COMPILATION ERROR :
[ERROR] /proxy/frontend/dialect/firebird/src/test/java/org/apache/shardingsphere/proxy/frontend/firebird/command/query/blob/FirebirdGetBlobSegmentCommandExecutorTest.java:[146,44] method registerBlob in class org.apache.shardingsphere.proxy.frontend.firebird.command.query.blob.cache.FirebirdBlobReadCache cannot be applied to given types;
  required: int,int,byte[],boolean
  found:    int,int,byte[]
  reason: actual and formal argument lists differ in length

Reason analyse

Two independently-merged PRs both touched FirebirdBlobReadCache/FirebirdGetBlobSegmentCommandExecutorTest without one rebasing on the other:

This confirms the breakage is independent of any other open PR — reproduced by building a clean worktree of master alone, with no other branch merged in.

Steps to reproduce the behaviour

git clone --branch master https://github.com/apache/shardingsphere.git
cd shardingsphere
./mvnw -pl proxy/frontend/dialect/firebird -am -DskipTests test-compile

Suggested fix

Add the missing boolean streamBlob argument to the one call at line 146, matching the convention already used by every other call in the same file:

FirebirdBlobReadCache.getInstance().registerBlob(CONNECTION_ID, BLOB_HANDLE, new byte[]{1, 2, 3}, false);

Disclosure: found and investigated with assistance from Claude while diagnosing an unrelated CI failure on PR #39882, whose merge-ref build hit this same compile error.

Activity

  1. rishi-rana commented on Oct 10, 2026

    @rishi-rana
    ContributorAuthor

    I'd like to fix this, with a deadline of 2026-10-13. The fix is a one-line change to the one remaining 3-arg registerBlob call; opening a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions