Attila Doroszlai created HDDS-17889:
---------------------------------------
Summary: respFuture is already completed in writeChunkToContainer
Key: HDDS-17889
URL: https://issues.apache.org/jira/browse/HDDS-17889
Project: Apache Ozone
Issue Type: Bug
Reporter: Tsz-wo Sze
Reported in https://github.com/apache/ozone/pull/12065#discussion_r4654802410
{code:title=https://github.com/apache/ozone/blob/c32ba28982b57ca812a5cbc33a6b88aa38869321/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockOutputStream.java#L969-L973}
try {
validateResponse(e);
} catch (IOException sce) {
respFuture.completeExceptionally(sce);
}
{code}
This is incorrect, since {{respFuture}} is already completed here. Calling
{{respFuture.completeExceptionally(..)}} has no effect.
- It should throw CompletionException.
- Then, all the calls are just catch IOException and then throw
CompletionException. We should change {{validateResponse(..)}} to throw
CompletionException.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]