[Bug] Mock Netty server does not handle RM resource unregistration

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

Check Ahead

  • Searched existing mock server/unregister issues.
  • Willing to fix.

Issue Description

MockNettyRemotingServer registers RM registration but not TYPE_UNREG_RM. Normal integration-test cleanup sends resource unregistration messages which are dropped with a missing-processor error. Existing transaction tests pass without validating resource removal.

Evidence

Java 17 CI job, source 96e84e52f, raw lines 44947, 45144 and 45349: This message type [105] has no processor. These are normal mock-server integration resource teardown messages, not the explicit unsupported-message unit test.

Expected behavior

Register the existing server unregistration processor and verify that a real request returns success and removes the resource channel. Preserve other resource registrations and existing negative transaction scenarios.

Environment

Seata 2.8.0-SNAPSHOT, Java 17.