Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public synchronized boolean init(final RpcOptions rpcOptions) {
private <V> void internalCallAsyncWithRpc(final Endpoint endpoint,
final RaftRpcProcessor.BaseRequest request,
final FutureClosureAdapter<V> closure) {
final InvokeContext invokeCtx = null;
final InvokeContext invokeCtx = new InvokeContext();
final InvokeCallback invokeCallback = new InvokeCallback() {
Comment on lines +63 to 64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any context for it? And we should add some basic tests to ensure the logic right

Copy link
Contributor Author

@JisoLya JisoLya Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementation throws a NullPointerException (NPE) when performing cluster tests on a 3-node PD setup (see image).
Follower side:
image

Leader side (which has no any dbCompaction log):
image

The issue is reproducible with this test code:

@Test
    public void TestSimplePd() throws PDException {
		// 8686: leader, 8688 and 8687 are followers
        String addr = "127.0.0.1:8687";
        PDConfig pdConfig = PDConfig.of(addr);
        PDClient client = PDClient.create(pdConfig);
        client.dbCompaction();
    }

Send dbCompaction to followers after changes:
Follower side log:
image
Leader side log which is expected:
image


@Override
Expand Down
Loading