[
https://issues.apache.org/jira/browse/RATIS-1987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved RATIS-1987.
-------------------------------
Fix Version/s: 3.1.0
Resolution: Fixed
The pull request is now merged.
> Intermittent NPE in TestGrpcZeroCopy
> ------------------------------------
>
> Key: RATIS-1987
> URL: https://issues.apache.org/jira/browse/RATIS-1987
> Project: Ratis
> Issue Type: Bug
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Tsz-wo Sze
> Priority: Minor
> Fix For: 3.1.0
>
> Attachments: org.apache.ratis.grpc.util.TestGrpcZeroCopy-output.txt,
> org.apache.ratis.grpc.util.TestGrpcZeroCopy.txt
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {code}
> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 11.318 s <<< FAILURE! - in org.apache.ratis.grpc.util.TestGrpcZeroCopy
> [ERROR] org.apache.ratis.grpc.util.TestGrpcZeroCopy.testZeroCopy Time
> elapsed: 11.148 s <<< ERROR!
> java.util.concurrent.ExecutionException:
> org.apache.ratis.thirdparty.io.grpc.StatusRuntimeException: CANCELLED: Failed
> to read message.
> at
> java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
> at
> java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
> at
> org.apache.ratis.grpc.util.TestGrpcZeroCopy.sendBinaries(TestGrpcZeroCopy.java:161)
> at
> org.apache.ratis.grpc.util.TestGrpcZeroCopy.runTestZeroCopy(TestGrpcZeroCopy.java:116)
> at
> org.apache.ratis.grpc.util.TestGrpcZeroCopy.testZeroCopy(TestGrpcZeroCopy.java:108)
> ...
> Caused by: java.lang.NullPointerException
> at
> org.apache.ratis.grpc.util.GrpcZeroCopyTestClient$2.onNext(GrpcZeroCopyTestClient.java:96)
> at
> org.apache.ratis.grpc.util.GrpcZeroCopyTestClient$2.onNext(GrpcZeroCopyTestClient.java:93)
> at
> org.apache.ratis.thirdparty.io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:468)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)