@@ -1407,7 +1407,7 @@ public void deleteSubscription(
1407
1407
internalDeleteSubscriptionAsync (subName , authoritative , force )
1408
1408
.thenRun (() -> asyncResponse .resume (Response .noContent ().build ()))
1409
1409
.exceptionally (ex -> {
1410
- Throwable cause = unwrapCompletionException (ex );
1410
+ Throwable cause = FutureUtil . unwrapCompletionException (ex );
1411
1411
1412
1412
// If the exception is not redirect exception we need to log it.
1413
1413
if (!isRedirectException (cause )) {
@@ -1699,7 +1699,7 @@ public void resetCursor(
1699
1699
internalResetCursorAsync (decode (encodedSubName ), timestamp , authoritative )
1700
1700
.thenAccept (__ -> asyncResponse .resume (Response .noContent ().build ()))
1701
1701
.exceptionally (ex -> {
1702
- Throwable t = unwrapCompletionException (ex );
1702
+ Throwable t = FutureUtil . unwrapCompletionException (ex );
1703
1703
if (!isRedirectException (t )) {
1704
1704
log .error ("[{}][{}] Failed to reset cursor on subscription {} to time {}" ,
1705
1705
clientAppId (), topicName , encodedSubName , timestamp , t );
@@ -2065,7 +2065,7 @@ public void getBacklog(
2065
2065
.thenCompose (__ -> internalGetBacklogAsync (authoritative ))
2066
2066
.thenAccept (asyncResponse ::resume )
2067
2067
.exceptionally (ex -> {
2068
- Throwable t = unwrapCompletionException (ex );
2068
+ Throwable t = FutureUtil . unwrapCompletionException (ex );
2069
2069
if (t instanceof MetadataStoreException .NotFoundException ) {
2070
2070
log .warn ("[{}] Failed to get topic backlog {}: Namespace does not exist" , clientAppId (),
2071
2071
namespaceName );
@@ -4219,7 +4219,7 @@ public void truncateTopic(
4219
4219
internalTruncateTopicAsync (authoritative )
4220
4220
.thenAccept (__ -> asyncResponse .resume (Response .noContent ().build ()))
4221
4221
.exceptionally (ex -> {
4222
- Throwable t = unwrapCompletionException (ex );
4222
+ Throwable t = FutureUtil . unwrapCompletionException (ex );
4223
4223
if (!isRedirectException (t )) {
4224
4224
log .error ("[{}] Failed to truncate topic {}" , clientAppId (), topicName , t );
4225
4225
}
0 commit comments