[Bug] gRPC commit and rollback tests pass without a connected RM or completed responses

Author: slievrlyCreated Sep 26, 2026Updated Sep 26, 2026

Check Ahead

  • Searched GrpcTest issues. Closed #6990 concerned protobuf BufferUnderflowException; this is a different fixture/assertion failure.
  • Willing to fix.

Issue Description

GrpcTest sends branch registration and commit/rollback without registering the corresponding RM, uses a hard-coded XID instead of the begin result, and ignores CountDownLatch.await's result. onError only prints the exception. Both normal transaction tests can therefore pass without the final response or any resource-manager callback.

Evidence

Java 17 CI job, commit 96e84e52f, raw line 58344: RuntimeException / IOException: rm client is not connected, dbkey:test-resource, clientId:test-applicationId. The tests still complete successfully after waiting.

Expected behavior

Normal gRPC commit/rollback tests must provide a registered RM, sequence requests using the returned XID, verify successful response types/statuses and actual TCC callbacks, and fail on timeout or asynchronous error. The managed channel must be closed.

Environment

Seata 2.8.0-SNAPSHOT, Java 17, test-new-version.