Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,21 @@ public StoreResponse unwrapToStoreResponse(
payloadBuf
);

if (payloadBuf != content) {
// payload is a slice/derived view; super() owns payload, we still own the container
// this includes scenarios where payloadBuf == EMPTY_BUFFER
ReferenceCountUtil.safeRelease(content);
}

return storeResponse;
} finally {
} catch (Throwable t){
if (payloadBuf != content) {
// payload is a slice/derived view; super() owns payload, we still own the container
// this includes scenarios where payloadBuf == EMPTY_BUFFER
ReferenceCountUtil.safeRelease(content);
}

throw t;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public Mono<ShouldRetryResult> shouldRetry(Exception e) {
.warn(
"WebExceptionRetryPolicy() No retries because client is not initialized yet. - "
+ "operationType = {}, count = {}, isAddressRefresh = {}",
this.request.getOperationType(),
this.request != null ? this.request.getOperationType() : "n/a",
this.retryCount,
this.request.isAddressRefresh());
this.request != null ? this.request.isAddressRefresh() : "n/a");

return Mono.just(ShouldRetryResult.noRetry());
}
Expand Down