You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Service Bus] Client validation improvements for cross-language consistency (Azure#17454)
Adding in client validation for what we envision are common failures in user-scenarios:
* Passing empty arrays in to methods like receiveDeferredMessages and cancelScheduledMessages()
* Attempting to complete a message that's been received through peekMessage*
* Making message ID, session ID or partitionKey too long, causing somewhat cryptic backend failure
* Using non-matching partitionKey and sessionIds (again, cryptic backend failure)
FixesAzure#17364
Copy file name to clipboardExpand all lines: sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessage.java
Copy file name to clipboardExpand all lines: sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClient.java
+20-11Lines changed: 20 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -194,7 +194,7 @@ public String getEntityPath() {
194
194
* @return A {@link Mono} that completes when the Service Bus abandon operation completes.
195
195
* @throws NullPointerException if {@code message} is null.
196
196
* @throws UnsupportedOperationException if the receiver was opened in {@link ReceiveMode#RECEIVE_AND_DELETE}
197
-
* mode.
197
+
* mode or if the message was received from peekMessage.
Copy file name to clipboardExpand all lines: sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusReceiverClient.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ public String getEntityPath() {
80
80
*
81
81
* @throws NullPointerException if {@code message} is null.
82
82
* @throws UnsupportedOperationException if the receiver was opened in {@link ReceiveMode#RECEIVE_AND_DELETE}
83
-
* mode.
83
+
* mode or if the message was received from peekMessage.
Copy file name to clipboardExpand all lines: sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/implementation/ManagementChannel.java
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -89,13 +89,18 @@ public class ManagementChannel implements ServiceBusManagementNode {
0 commit comments