Граф коммитов

191 Коммитов

Автор SHA1 Сообщение Дата
microsoft-github-policy-service[bot] 48bedb8635
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-03-28 16:47:08 +00:00
microsoft-github-policy-service[bot] fae61e9d9b
Microsoft mandatory file 2023-01-24 17:17:33 +00:00
Vijaya Gopal Yarramneni 4370a8f952
Fixing a bug where completion stage's next step is called on forkjoinpool instead of the internal threadpool. (#396) 2020-02-04 19:38:46 -08:00
Vijaya Gopal Yarramneni 078f1a0cd9
Minor change to test case. (#389) 2019-11-05 17:17:49 -08:00
Vijaya Gopal Yarramneni 812bf7e5a3
Removing finalize method altogether. (#388)
* Removing finalize method altogether.

* Chaging vesion.

* Addin finalize only for MessagingFactory as connection needs to be disposed properly.

* Another fix to avoid stalling in finalize waiting for object to close.
2019-11-05 16:40:22 -08:00
Vijaya Gopal Yarramneni 8d12d31f38
To fix the intermittent connection drops and timeouts experienced by some customers. (#387) 2019-10-21 18:42:45 -07:00
Vijaya Gopal Yarramneni 136376b7f2
Fixing high CPU and memory leak in session pump (#382)
* Fixing high CPU and memory leak in session pump caused by timed out accept session requests.

* Fixing a minor race condition when closing sender or receiver on link creation timeout.
2019-10-01 11:31:15 -07:00
Vijaya Gopal Yarramneni 1f5138a669
Update README.md 2019-07-17 15:50:28 -07:00
Vijaya Gopal Yarramneni 650ee00905
Fixing a rare case where idle connection is closed by the service at the exact time the client is creating a link. (#373)
If the connection is closed by service after CBS token is sent, link open operaiton was failing with AuthorizsationFailed exception.
2019-06-25 03:55:21 -07:00
Vijaya Gopal Yarramneni 4d760c4757
use metadata service to grab JWT token (#298) (#371) 2019-06-21 11:30:28 -07:00
Vijaya Gopal Yarramneni ac91c74cda
Fixing a NullPointerException in RequestResponseLink (#359) 2019-05-29 16:04:24 -07:00
Vijaya Gopal Yarramneni b1ba2c80d8
Chaning version in the POM that is shipped out (#356) 2019-04-19 01:10:00 -07:00
Vijaya Gopal Yarramneni 4926dd9a32
Porting the memory leak fix from dev and changing version to 1.2.13 (#355)
* Fixing a minor memory leak. (#353)


# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/amqp/ConnectionHandler.java
#	pom.xml

* Cahnging version to 1.2.13
2019-04-19 00:56:31 -07:00
Vijaya Gopal Yarramneni 2c04546c4d
Chagning version to 1.2.12 (#347) 2019-03-15 15:32:33 -07:00
Vijaya Gopal Yarramneni e37399c6d9
Fixing the infinite loop that runs to renew SAS token after 20 minutes when a connection string contains the SAS token instead of SAS key. (#342) 2019-03-15 13:56:27 -07:00
Vijaya Gopal Yarramneni 56df106b96
[ASB-304] "No messages received" log messsage demoted to info"(#343) (#345) 2019-03-12 10:26:56 -07:00
Vijaya Gopal Yarramneni d491202756
Making MessageBody serializable. Also changing version to 1.2.11. (#328) 2019-01-15 17:45:51 -08:00
Vijaya Gopal Yarramneni 6e442655fe
Changing version to 1.2.10 (#322) 2019-01-08 16:08:44 -08:00
Vijaya Gopal Yarramneni 2d634d1e78
Fixing a regression caused by upgrading to proton-j version 1.31. Fix addresses the case where a property value is null. (#321) 2019-01-08 14:28:40 -08:00
Vijaya Gopal Yarramneni 0387311c3c
Fixing a bug in certonly verification path. (#318)
Fixing a bug in certificate only verification path.
2019-01-03 16:44:41 -08:00
Vijaya Gopal Yarramneni 2449a71916
Making host name verification optional (#317)
* Making ssl host name verification optional based on a system property. This will help with some proxy scenarios.

* adding code comments

* Changin version for 1.2.10-SNAPSHOT'
2019-01-03 16:13:40 -08:00
Vijaya Gopal Yarramneni 15f112dda4
Changing version to 1.2.9 (#314)
Changing version to 1.2.9
2018-12-18 17:30:57 -08:00
Vijaya Gopal Yarramneni 255e327bed
Fix to verify hostname in the server certificate (#313)
* Fixing Man-In-The-Middle vulnerability of the Java SDK. The fix is as simple as upgradin to 0.31 version of ProtonJ.
But some TLS protocol handshake issues with ServiceBus AMQP protocol head needed a workaround.

* Removing an auto generated comment.

* Minor refactoring to move getPort method to the connection handler.
2018-12-18 16:55:14 -08:00
Vijaya Gopal Yarramneni 104912a35e
Adding support for multiple message body types. (#296)
* Adding support for multiple message body types.
Deprecated getBody and setBody methods.

* Changes to MessageBody class API to support AMQP spec of multiple data sections or sequence sections in a message.

* Adding a minor null check.

* Change to handle Messages constructed with string body as binary messages to preserve backward compatibility.

* Adding message body tests.
2018-12-11 19:59:47 -08:00
Vijaya Gopal Yarramneni 36927d56f3
Adding retry to RequestResponse link when idle connection is closed. (#305)
* Adding retry to RequestResponse link when idle connection is closed. Otherwise CBS token sending will fail if a SEND request comes in right at the time of connnection closing.

* Minor tweaks to fix 15 minute timeout bug.

* Another fix to handle connection while the links are being opened.

* Another fix to retry sending SAS token if it times out. There are cases when client sending SAS token and server closing the connection happen at the same time and response never arrives.

* More fixes to request-response link to retry on connection close.

* A test fix.
2018-12-05 11:35:45 -08:00
Vijaya Gopal Yarramneni 12e68c1cae
Test improvements (#309)
* Adding a large message test.
Adding duplicate tests for partitioned entities.
Minor tweaks to make message handler tests more reliable.

* Invalid merge.

* Removed merge conflict files

* Some test fixes.

* Adding ARM deployment template for CI (#218)

build/azuredeploy.json

* Test reliability fixes.
And RequestResponseLimitTest is modified to drastically reduce its runtime.

* More test reliability fixes.

* More tweaks.
2018-11-30 15:34:15 -08:00
Vijaya Gopal Yarramneni e866ccd8ca
Fixing a pseudo memory leak created by closing MessagingFactory befor… (#287)
* Fixing a pseudo memory leak created by closing MessagingFactory before CBSLink could be created.
This is not a true leak because the RequestResponseLink has a finalize method and will eventually be freed.
But the finalize method may slow down the garbage collector and user will see increased memory consumption.

* Removing a comment
2018-10-15 14:06:08 -07:00
Vijaya Gopal Yarramneni c4283d7af7
Changing version to 1.2.9-SNAPSHOT (#282) 2018-09-21 12:50:42 -07:00
Vijaya Gopal Yarramneni be9f9a5bea
Changing client version to 1.2.8 (#281) 2018-09-21 12:14:36 -07:00
Vijaya Gopal Yarramneni 2669f67a74
Vijay work (#278)
Minor changes to not write too many traces.
2018-09-14 16:43:02 -07:00
Vijaya Gopal Yarramneni 2d644a19aa
Change to not use ForkJoinPool for SdK internal operations (#276)
* Fist changes to not use ForkJoinPool.commonPool for internal SDK operations.

* Second set of changes to not use ForkJoinPool for internal SDK operations.

* Next batch of changes to not use ForkJoinPool.commonPool for SDK internal operations.

* Reducing wait times on empty queues/subscriptions to shorten test run time.

* Change to accept a threadpool when registering a message handler or session handler.
2018-09-13 15:40:38 -07:00
Vijaya Gopal Yarramneni c52ba6f5c5
Revert "Adding missing boolean type support in Message properties. (#252)" (#270)
This reverts commit 31f21a05cb.
2018-08-22 16:42:45 -07:00
Vijaya Gopal Yarramneni 1858d58207
Adding link name to warning and error traces. Link name will have the gateway number and that info makes it much easier to quickly search through service log. (#256) (#257) 2018-08-02 12:02:58 -07:00
Vijaya Gopal Yarramneni 31f21a05cb
Adding missing boolean type support in Message properties. (#252) 2018-07-20 17:50:01 -07:00
Vijaya Gopal Yarramneni 9c16ab3419
Fixing javadoc comment error (#246) 2018-07-13 18:57:34 -07:00
Vijaya Gopal Yarramneni a25b9d700d
Cherrypicking fixes from Dev branch (#244)
* Adding a property needed for additional validation to check client type (#240)

* Adding a property needed for additional validation to check if the type of client being created matches the entity type.
Added unit tests too.

* Fixing a unit test

# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/ClientFactory.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/MessageSender.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/Controller.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/CoreMessageSender.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/MessagingFactory.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/RequestResponseLink.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/RequestResponseLinkCache.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/QueueSendReceiveTests.java

* Renaming two public methods. From getScheduledEnqueuedTime to getScheduledEnqueueTime. (#241)

Similarly for set. They were mistakenly kept like that in the first release.
# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/MessageSender.java

* Chaning version to 1.2.7
2018-07-13 18:30:11 -07:00
Vijaya Gopal Yarramneni 07d051ce20
Master (#238)
* Chaning SLF4J dependency version to 1.7. (#233)


# Conflicts:
#	pom.xml

* Fixing a broken link in README by adding support doc (#234)

* Changin max message size to 1 MB. (#235)

Fixes #214
# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/Controller.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/CoreMessageSender.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/RequestResponseLink.java

* Fix to the issue where senders, receivers are not recovering after network outage. (#236)


# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/RequestResponseLink.java

* Changing version to 1.2.6

* Removing renew lock tests in a session.
2018-06-28 16:59:28 -07:00
Neeraj Makam 331d8a8787 Merge branch 'dev'
# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/MessageReceiver.java
2018-04-18 17:14:33 -07:00
Neeraj Makam 70d49ad765 Removing smarts of filtering expired messages. This change had been removed due to merge conflicts 2018-04-18 17:08:05 -07:00
Neeraj Makam 390676914f
Merge from master to dev (#212) 2018-04-18 17:00:58 -07:00
Neeraj Makam b47e9a8d58 Merge branch 'dev'
# Conflicts:
#	README.md
#	azure-servicebus/azure-servicebus.pom
#	azure-servicebus/pom.xml
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/CoreMessageReceiver.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/CoreMessageSender.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/MessagingFactory.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/RequestResponseLink.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/ClientSessionTests.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/ClientTests.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/SendReceiveTests.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/SessionTests.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/TestUtils.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/management/EntityManager.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/management/ManagementException.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/management/QueueDescription.java
#	azure-servicebus/src/test/java/com/microsoft/azure/servicebus/management/SubscriptionDescription.java
#	pom.xml
2018-04-18 15:05:16 -07:00
Neeraj Makam 527fe07fce Updating version to 1.2.5 2018-04-18 14:35:42 -07:00
Neeraj Makam 6718d042f1
Taking care of NPE in MessageConverter. (#208)
Fixes #191
2018-04-17 17:19:45 -07:00
Neeraj Makam 27086ea84b
Controlling wait time for receiving messages in message/session pump (#199)
Exposing a new option for MessageHandler and SessionHandler which controls the wait time for receiving the message.

Fixes #197
2018-04-05 16:58:10 -07:00
Christian Wolf 26cca5341f Adding build tracker to readme (#207) 2018-04-02 17:32:15 -07:00
Vijaya Gopal Yarramneni 15f4ed6f19
Porting bug fixes from dev branch (#195)
* ReceiveLink idle close fix (#186)

* Sending extra application property in request message to associate a request on request-response link with a sender or rceiver.

* Correcting a typo

* Moving SAS token renewal part from MiscOpeationsHandler to RequestResponseLink so when connection is lost (#188)

and request-response link request is the first request on reconnection, SAS token is sent to service bus before attempting the request.
# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/MiscRequestResponseOperationHandler.java
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/RequestResponseLink.java

* Fixing a memory leak in qpid layer.  (#193)

* Fixing a memory leak in qpid layer. When service force closes an idle connetion, it is not properly freed in qpid layer.
Includes some minor changes to make code simpler.

* Fixing a code review comment.

# Conflicts:
#	azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/MessagingFactory.java

* Changing version.

* Resolving a merge conflict.
2018-03-04 10:23:57 -08:00
Vijaya Gopal Yarramneni be9e35bc89
Chaning version (#194)
* Fixing a memory leak in qpid layer. When service force closes an idle connetion, it is not properly freed in qpid layer.
Includes some minor changes to make code simpler.

* Fixing a code review comment.

* Chaging version.
2018-03-04 01:31:09 -08:00
Vijaya Gopal Yarramneni e7fcc0bfde
Fixing a memory leak in qpid layer. (#193)
* Fixing a memory leak in qpid layer. When service force closes an idle connetion, it is not properly freed in qpid layer.
Includes some minor changes to make code simpler.

* Fixing a code review comment.
2018-03-02 20:58:27 -08:00
Vijaya Gopal Yarramneni 68d114bba5
Moving SAS token renewal part from MiscOpeationsHandler to RequestResponseLink so when connection is lost (#188)
and request-response link request is the first request on reconnection, SAS token is sent to service bus before attempting the request.
2018-02-22 15:16:53 -08:00
Vijaya Gopal Yarramneni 9327038024
ReceiveLink idle close fix (#186)
* Sending extra application property in request message to associate a request on request-response link with a sender or rceiver.

* Correcting a typo
2018-02-12 14:48:33 -08:00