Skip to content

MCS connection scaling interop tests for Java#12651

Merged
kannanjgithub merged 30 commits into
grpc:masterfrom
kannanjgithub:mcs-interop-tests
Jun 25, 2026
Merged

MCS connection scaling interop tests for Java#12651
kannanjgithub merged 30 commits into
grpc:masterfrom
kannanjgithub:mcs-interop-tests

Conversation

@kannanjgithub

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java Outdated
@kannanjgithub

Copy link
Copy Markdown
Contributor Author

I realized I forgot to push the commits addressing review comments last week.

Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java Outdated
Comment thread android-interop-testing/build.gradle Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java Outdated
@kannanjgithub kannanjgithub requested a review from ejona86 March 25, 2026 18:16
@ejona86 ejona86 removed their request for review April 28, 2026 21:30
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java Outdated
…dropping intermediary commit with debug statements).

# Conflicts:
#	interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java
# Conflicts:
#	interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java
…Impl

    Refactor `fullDuplexCall` in `TestServiceImpl` to route peer socket address
    requests through the `toChunkQueue()` pipeline and the `ResponseDispatcher`.
    This replaces the previous approach of manually branching and bypassing
    the standard chunk streaming flow.

    Specifically:
    - Retrieve the peer's socket address on the request-handling thread inside
     `toChunkQueue()` to prevent context loss on the background scheduling thread.
   - Overload the `Chunk` class constructor to accept a nullable `peerSocketAddress`
     while keeping the default constructor for backward compatibility.
   - Ensure `Chunk.toResponse()` only populates the response `payload` field if
     `length > 0`, preserving the exact wire-format for empty/address-only requests.
   - Remove the manual branch on `whetherSendClientSocketAddressInResponse` and its
     associated helper method, simplifying `fullDuplexCall`.
copybara-service Bot pushed a commit to grpc/grpc that referenced this pull request Jun 10, 2026
Corresponding changes in (common) Java server for interop test: grpc/grpc-java#12651

Closes #41664

COPYBARA_INTEGRATE_REVIEW=#41664 from kannanjgithub:mcs 64293f6
PiperOrigin-RevId: 930078263
@kannanjgithub kannanjgithub requested a review from ejona86 June 16, 2026 15:56
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java Outdated
Comment thread interop-testing/src/main/java/io/grpc/testing/integration/TestServiceImpl.java Outdated
}
}

public void testMcs(TestServiceGrpc.TestServiceStub asyncStub) throws Exception {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You don't need a stub passed in. Use asyncStub that has already been created (like the other tests).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@kannanjgithub kannanjgithub reopened this Jun 25, 2026
@kannanjgithub kannanjgithub merged commit c88285f into grpc:master Jun 25, 2026
25 of 26 checks passed
@kannanjgithub kannanjgithub deleted the mcs-interop-tests branch June 25, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants