Repository navigation
Closed
Description
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:
- Support op_seek_blob operation for stream BLOBs in Firebird Proxy #39984 changed
FirebirdBlobReadCache.registerBlobfromregisterBlob(int, int, byte[])toregisterBlob(int, int, byte[], boolean), and updated every existing call site in this test file to the 4-arg form. - Fix firebird blob segment eof state #40102 branched from a commit before Support op_seek_blob operation for stream BLOBs in Firebird Proxy #39984 merged (confirmed:
3f85f839f789675906c41e27524732df43baafe8does not contain Support op_seek_blob operation for stream BLOBs in Firebird Proxy #39984's merge commit46ad251d27a) and added a new test method,assertExecuteWithLastSegment, using the old 3-arg call. It merged after Support op_seek_blob operation for stream BLOBs in Firebird Proxy #39984 without being rebased, so the two changes don't conflict textually but are incompatible — the one call at line 146 is now the only 3-argregisterBlobcall left in the file; the other nine call sites in the same file already use the 4-arg form.
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
rishi-rana commentedon Oct 10, 2026
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
registerBlobcall; opening a PR shortly.