Skip to content

Commit 9f9bd9d

Browse files
Fix retrieving existing connection
1 parent a92a613 commit 9f9bd9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/solacecoe/connectors/spark/streaming/partitions/SolaceInputPartitionReader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public SolaceInputPartitionReader(SolaceInputPartition inputPartition, boolean i
9090

9191
// Get existing connection if a new task is scheduled on executor or create a new one
9292
if (SolaceConnectionManager.getConnection(inputPartition.getId()) != null) {
93+
solaceBroker = SolaceConnectionManager.getConnection(inputPartition.getId());
9394
if (closeReceiversOnPartitionClose) {
9495
createReceiver(inputPartition.getId(), ackLastProcessedMessages);
9596
}

0 commit comments

Comments
 (0)