Skip to content

Commit 85d3119

Browse files
fix: update exception handling exposed by underlying API translating changes (#53)
* fix: Incorrect exception handling exposed by underlying API translating ExecutionException differently. * fix: reformat
1 parent 085897a commit 85d3119

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
<dependency>
1818
<groupId>com.google.api.grpc</groupId>
1919
<artifactId>proto-google-cloud-pubsublite-v1</artifactId>
20-
<version>0.7.0</version>
20+
<version>0.8.0</version>
2121
</dependency>
2222
<dependency>
2323
<groupId>com.google.cloud</groupId>
2424
<artifactId>google-cloud-pubsublite</artifactId>
25-
<version>0.7.0</version>
25+
<version>0.8.0</version>
2626
</dependency>
2727
<dependency>
2828
<groupId>org.apache.kafka</groupId>

src/test/java/com/google/cloud/pubsublite/kafka/SharedBehaviorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.time.Duration;
3232
import java.util.List;
3333
import org.apache.kafka.common.PartitionInfo;
34-
import org.apache.kafka.common.errors.BrokerNotAvailableException;
34+
import org.apache.kafka.common.errors.InvalidRequestException;
3535
import org.junit.Before;
3636
import org.junit.Test;
3737
import org.junit.runner.RunWith;
@@ -71,7 +71,7 @@ public void partitionsForFailure() {
7171
ApiFutures.immediateFailedFuture(
7272
new CheckedApiException(StatusCode.Code.FAILED_PRECONDITION).underlying));
7373
assertThrows(
74-
BrokerNotAvailableException.class,
74+
InvalidRequestException.class,
7575
() -> shared.partitionsFor(example(TopicPath.class), Duration.ofMillis(10)));
7676
}
7777

0 commit comments

Comments
 (0)