Skip to content

Commit 748643f

Browse files
Update SolaceInputPartitionReader.java
1 parent 1084d12 commit 748643f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pubsubplus-connector-spark_3.x/src/main/java/com/solacecoe/connectors/spark/streaming/partitions/SolaceInputPartitionReader.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ public SolaceInputPartitionReader(SolaceInputPartition inputPartition, boolean i
9393

9494
@Override
9595
public boolean next() {
96+
if(this.solaceBroker != null && this.solaceBroker.isException()) {
97+
throw new SolaceSessionException(this.solaceBroker.getException());
98+
}
9699
solaceMessage = getNextMessage();
97100
return solaceMessage != null;
98101
}

0 commit comments

Comments
 (0)