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

[ServiceBus] Allow clearing of session state #27726

Merged
merged 7 commits into from
Jan 6, 2023

Conversation

kashifkhan
Copy link
Member

@kashifkhan kashifkhan commented Nov 29, 2022

Per this document The previously set session state can be cleared by passing null to the SetState method on the receiver.

The python SDK currently does not accept None and raises an Exception since it tries to convert it in to a bytearray.

This brings it in to parity with other languages that accept null, nil etc.

Fixes #27582

@ghost ghost added the Service Bus label Nov 29, 2022
@azure-sdk
Copy link
Collaborator

azure-sdk commented Nov 29, 2022

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-servicebus
azure-servicebus

@kashifkhan kashifkhan changed the title [ServiceBus] Accept None in set_state [ServiceBus] Allow clearing of session state Nov 30, 2022
@kashifkhan
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kashifkhan
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@l0lawrence l0lawrence left a comment

Choose a reason for hiding this comment

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

lgtm

@kashifkhan
Copy link
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@swathipil swathipil left a comment

Choose a reason for hiding this comment

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

lgtm! (checking that this isn't related to an existing issue/customer report and doesn't need to be linked?)

@sebastian2696
Copy link

@swathipil this is the issue associated with this #27726

@swathipil
Copy link
Member

@swathipil this is the issue associated with this #27726

@sebastian2696 -- looks like you might've accidentally linked back to this PR? 🙂

@sebastian2696
Copy link

sebastian2696 commented Dec 2, 2022

@swathipil this is the issue associated with this #27726

@sebastian2696 -- looks like you might've accidentally linked back to this PR? 🙂

Not that I am aware... Unless you are asking how I know this PR exists?

@kashifkhan kashifkhan marked this pull request as ready for review December 2, 2022 14:40
@kashifkhan kashifkhan requested a review from annatisch as a code owner December 2, 2022 14:40
@kashifkhan kashifkhan merged commit c097741 into Azure:main Jan 6, 2023
@kashifkhan kashifkhan deleted the sb_clear_session branch January 6, 2023 15:06
iscai-msft added a commit that referenced this pull request Apr 26, 2023
…into version_tolerant_models

* 'main' of https://github.com/Azure/azure-sdk-for-python: (1604 commits)
  [Storage] Matching `_shared` folder contents across all packages (#28031)
  [ml] Rename MLException back to MlException (#28210)
  [EventHubs] update readme to include uamqp backcompat section (#28198)
  [Monitor][Ingestion] Adjust upload error handling (#27556)
  Add 3.11 to QA (#28169)
  p1 component deployment exisitng job definition (#28194)
  Typing for identity (#28159)
  [ServiceBus] Allow clearing of session state (#27726)
  [ML][Pipelines] Fix parallel-for validation rule: allow empty dict as loop config item (#28178)
  [ML][Pipelines] feat: enable concurrent component registration (#28118)
  [ML][Pipelines] Test: update invalid reuse test (#28180)
  [AutoRelease] t2-loadtesting-2022-12-23-48532(can only be merged by SDK owner) (#28042)
  [ML][Pipelines] Test: update unstable tests in ci (#28157)
  [ML]: Adding experimental decorator to JobDefinition (#28200)
  [Identity] Fix 'az' existence check in CliCred (#27991)
  [EventHubs] fix tracing bug (#28149)
  ShortForMigrateFrom (#28192)
  Address the API review comments (#28188)
  [SchemaRegistryAvro] update recordings (#28158)
  [EventHub] update uamqp_transport docstring (#28186)
  ...
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.

[Service Bus] Session is not closeable
6 participants