Github user SreeramGarlapati commented on a diff in the pull request:
https://github.com/apache/storm/pull/1951#discussion_r102768443
--- Diff:
external/storm-eventhubs/src/main/java/org/apache/storm/eventhubs/bolt/EventHubBolt.java
---
@@ -70,10 +69,9 @@ public void prepare(Map config, TopologyContext context,
logger.info("creating sender: " +
boltConfig.getConnectionString()
+ ", " + boltConfig.getEntityPath() + ", " +
myPartitionId);
try {
- EventHubClient eventHubClient = EventHubClient.create(
- boltConfig.getConnectionString(),
- boltConfig.getEntityPath());
- sender =
eventHubClient.createPartitionSender(myPartitionId);
+ ehClient =
EventHubClient.createFromConnectionString(boltConfig.getConnectionString()).get();
--- End diff --
>get [](start = 90, length = 3)
use methods ending with sync(...) - which could return cleaner exception
stacks
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---