[ 
https://issues.apache.org/jira/browse/RATIS-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze updated RATIS-2344:
------------------------------
    Fix Version/s: 3.2.1
                       (was: 3.3.0)

> Remove the unused mock from StateMachineShutdownTests
> -----------------------------------------------------
>
>                 Key: RATIS-2344
>                 URL: https://issues.apache.org/jira/browse/RATIS-2344
>             Project: Ratis
>          Issue Type: Improvement
>          Components: test
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>             Fix For: 3.2.1
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The mock is declared but not really used in the StateMachineShutdownTests.
> Moreover, the mock causes failure in JDK17 due to Java 9 Modularity.
> {code}
> 2025-10-08 17:14:00 - INFO-root::util|420:: [ERROR] 
> org.apache.ratis.grpc.TestStateMachineShutdownWithGrpc.testStateMachineShutdownWaitsForApplyTxn
>  -- Time elapsed: 2.021 s <<< ERROR!
> 2025-10-08 17:14:00 - INFO-root::util|420:: java.lang.IllegalAccessException: 
> class org.mockito.internal.util.reflection.ReflectionMemberAccessor cannot 
> access a member of class java.util.concurrent.CompletableFuture (in module 
> java.base) with modifiers "static"
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to