Skip to content

Commit 804c5c1

Browse files
committed
Fixed findbugs
1 parent 6bb5098 commit 804c5c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/TestContainerStateMachine.java

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import org.apache.ratis.proto.RaftProtos;
5252
import org.apache.ratis.protocol.Message;
5353
import org.apache.ratis.protocol.RaftGroup;
54+
import org.apache.ratis.protocol.RaftGroupId;
5455
import org.apache.ratis.protocol.RaftPeer;
5556
import org.apache.ratis.server.DivisionInfo;
5657
import org.apache.ratis.server.RaftServer;
@@ -101,6 +102,8 @@ public void setup() throws IOException {
101102
when(division.getInfo()).thenReturn(info);
102103
when(info.isLeader()).thenReturn(isLeader);
103104
when(ratisServer.getServerDivision(any())).thenReturn(division);
105+
stateMachine = new ContainerStateMachine(null,
106+
RaftGroupId.randomId(), dispatcher, controller, executor, ratisServer, conf, "containerOp");
104107
}
105108

106109

0 commit comments

Comments
 (0)