Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP | Draft]: Drop the support for AMQP v1 stack #43735

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

anuchandy
Copy link
Member

No description provided.

@anuchandy anuchandy self-assigned this Jan 8, 2025
@anuchandy anuchandy changed the title [WIP | Draft]: Remove AMQP v1 stack types [WIP | Draft]: Drop the support for AMQP v1 stack Jan 8, 2025
… update the ServiceBusProcessorClient to remove the v1 processor code
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@anuchandy
Copy link
Member Author

/azp run java - servicebus - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

* @throws InterruptedException If the test is interrupted.
*/
@Test
public void testReceivingMultiSessionMessagesWithProcessor() throws InterruptedException {
Copy link
Member Author

Choose a reason for hiding this comment

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

The ServiceBusSessionReceiverAsyncClient::ServiceBusReceiverAsyncClient is no longer responsible for internally pumping from "multiple" sessions, the v2 rework move this responsibility to SessionsMessagePump to address the out of order message delivery and the limited concurrency v1 had. The same case is now covered by
SessionsMessagePumpIsolatedTest::shouldPumpFromMultiSessionWhenBackingProcessor

@@ -442,39 +367,7 @@ public void testProcessorWithTracingEnabled(boolean isV2) throws InterruptedExce

@Test
@SuppressWarnings("unchecked")
public void testProcessorWithTracingEnabledAndNullMessage() throws InterruptedException {
Copy link
Member Author

@anuchandy anuchandy Jan 10, 2025

Choose a reason for hiding this comment

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

This test is not required anymore since v2 no longer uses ServiceBusReceivedMessageContext to funnel error. Which means the instrumentation in v2 processor will no longer get error-ServiceBusReceivedMessageContext with no message. Originally, this test was added after a regression where instrumentation tried to access null message in such ServiceBusReceivedMessageContext leading to NPE

* Integration tests for {@link ServiceBusSessionManager}.
*/
@Tag("integration")
class ServiceBusSessionManagerIntegrationTest extends IntegrationTestBase {
Copy link
Member Author

Choose a reason for hiding this comment

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

The ServiceBusReceiverAsyncClient is no longer act as the internal SessionManager pumping from "multiple" sessions, v2 moved that responsibility to the new SessionsMessagePump type to address the out of order message delivery and scaling. Valid cases in this test class are now covered by ServiceBusProcessorClientIntegrationTest and ServiceBusReceiverAsyncClientIntegrationTest

@anuchandy anuchandy force-pushed the remove-amqp-v1-stack branch from fae62c5 to f911d46 Compare January 10, 2025 20:05
@anuchandy
Copy link
Member Author

/azp run java - servicebus - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anuchandy anuchandy force-pushed the remove-amqp-v1-stack branch from f911d46 to bee48de Compare January 10, 2025 21:40
@anuchandy
Copy link
Member Author

/azp run java - servicebus - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…file, make the assert message for the test shouldPumpFromMultiSessionWhenBackingProcessor better
@anuchandy
Copy link
Member Author

/azp run java - servicebus - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants