azure-event-hubs-dotnet/test/Microsoft.Azure.EventHubs.T...
Serkant Karaca cec369a9fa
Reduce the number of storage calls in lease manager (#357)
* Couple improvements in Azure Lease Manager to reduce numberof storage calls.

* N/A as partition id

* Go with default timeout

* Moving to most recent AMQP release

* Fix flaky EPH test

* Adding 30 seconds default operation timeout back to tests.

* Reducing EPH to storage IO calls.

* Couple more fixes

* .

* Set token for owned leases.

* Refresh lease before acquiring in processor host.

* Fix metada removal order during lease release.

* Update lease token only for already running pumps to avoid resetting receiver position data.

* FetchAttributesAsync of blob as part of GetAllLeasesAsync() call.

* Refresh lease before attempting to steal

* Don't retry if we already lost the lease during receiver open.

* Don't attempt to steal if owner has changed from the calculation time to refresh time.

* -

* Partition pump to close when hit ReceiverDisconnectedException since this is not recoverable.

* -

* Ignore any failure during releasing the lease

* Don't update pump token if token is empty

* Nullify the owner on the lease in case this host lost it.

* Increment ourLeaseCount when a lease is acquired.

* Correcting task list

* No need to assign pump lease token to downloaded lease.

* comment update

* comment update

* Clear ownership on partial acquisition.

* Clear ownership on partial acquisition.

* Make sure we don't leave the lease as owned if acquisition failed.

* Adding logs to debug lease corruption bug

* Adding logs to debug lease corruption bug

* Small fix at steal lease check

* Protect subject iterator variable during task creation in for loops.

* .

* Renew lease right after ChangeLease call

* Don't create pump if partition expired or already moved to some other host.

* Use refreshed lease while creating partition pump.

* Remove temporary debug logs.

* Addressing SJ's comments

* Remove obsolete
2019-02-11 13:34:24 -08:00
..
Amqp Fix Tests Moving Lazy initialization at the top of the ctor (#347) 2018-11-12 11:35:07 -08:00
Client Reduce the number of storage calls in lease manager (#357) 2019-02-11 13:34:24 -08:00
Processor Reduce the number of storage calls in lease manager (#357) 2019-02-11 13:34:24 -08:00
Properties Appveyor and unit test updates (#166) 2017-05-26 17:25:13 -07:00
DisplayTestMethodNameAttribute.cs Appveyor and unit test updates (#166) 2017-05-26 17:25:13 -07:00
Microsoft.Azure.EventHubs.Tests.csproj Bumping up SDK version to 2.2.0 for release (#319) 2018-10-03 17:00:42 -07:00
TestConstants.cs Appveyor and unit test updates (#166) 2017-05-26 17:25:13 -07:00
TestUtility.cs Reduce the number of storage calls in lease manager (#357) 2019-02-11 13:34:24 -08:00