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

Pull latest changes from azure-event-hubs-java #3474

Merged
merged 45 commits into from
Apr 30, 2019

Conversation

conniey
Copy link
Member

@conniey conniey commented Apr 27, 2019

Pulls down latest changes from https://github.com/Azure/azure-event-hubs-java into event-hubs\data-plane

1 test fails now and the other is fixed.

  • ReactorFaultTest.VerifyReactorRestartsOnProtonBugs
  • MsgFactoryOpenCloseTest.VerifyThreadReleaseOnMsgFactoryOpenError

sjkwak and others added 24 commits December 13, 2018 11:55
… corresponds to an EventData returned last by the receiver (#408)
…tionReceiver and update the settings of Default & Max Prefetch count (#410)

This pull request includes two major changes related to Prefetch API.

1) Move setPrefetchCount API to the ReceiverOptions class so that prefetch value specified by a user can be used instead of using default value when communicating to the service during link open and initializing a receiver. This change also addresses the receiver stuck issue caused by setPrefetchAPI in a race condition.

2) Change the default value and set the upper bound of the prefetch count. Note that prefetch count should be greater than or equal to maxEventCount which can be set when either a) calling receive() API or b) implementing the getMaxEventCount API of the SessionReceiverHandler interface.
This pull request contains the following changes.

1) Finish pending tasks when recreating the reactor and make sure pending calls scheduled on the old reactor get complete.
2) Fix the session open timeout issue which can result in NPE in proton-J engine.
3) Make session open timeout configurable and use the value of OperationTimeout.
4) Update the message of exceptions and include an entity name in the exception message.
5) API change - use ScheduledExecutorService.
6) Improve tracing.
* ensure links are recreated on transport/connection failure
* update API document for EventProcessorOptions class
* add traces for link create/close case
* Handle proton:io errors with meaningful error msg

* Use Proton-supplied message if present
* Add logging if the scanner threw an exception.
* Change logging level to warn when scanner shuts down for any reason.
* Scanner can call EventProcessorOptions.notifyOfException, which calls user code. Change notifyOfException to defensively catch any exceptions coming out of user code.
Porting testability changes from .NET Core to Java: provide full access to EventData's SystemProperties so that a complete EventData can be fabricated in tests.
This fix is for issue #432. There are two parts:

AzureStorageCheckpointLeaseManager performs certain Storage actions within a forEach. If those actions fail, the StorageException gets wrapped in a NoSuchElementException. Catch those and strip off the NoSuchElementException, then handle the StorageException in the existing way.

The unexpected NoSuchElementExceptions were not being caught anywhere and the scanner thread was dying without rescheduling itself. Added code in PartitionMananger.scan to catch any exceptions that leak out of PartitionScanner and reschedule the scanner unless the host instance is shutting down.
…k is recreated upon a failure (#439)

* message receiver/sender - fix null pointer error and ensure that receive/send link is recreated on a failure.
…nnel for a single connection and improve logging (#443)

* Fix an issue of creating multiple sessions for $management & $cbs for a connection and improve logging
@conniey conniey added Event Hubs Client This issue points to a problem in the data-plane of the library. labels Apr 27, 2019
@conniey conniey self-assigned this Apr 27, 2019
@conniey conniey requested a review from mayurid April 27, 2019 05:58
@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@conniey conniey merged commit 3b5a76c into Azure:master Apr 30, 2019
@conniey conniey deleted the mergeLatestChanges branch April 30, 2019 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Event Hubs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants