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 @@ -123,6 +123,9 @@ public void testWriteFailure(boolean failWithException) throws ExecutionExceptio
RaftProtos.LogEntryProto entry = mock(RaftProtos.LogEntryProto.class);
when(entry.getTerm()).thenReturn(1L);
when(entry.getIndex()).thenReturn(1L);
RaftProtos.LogEntryProto entryNext = mock(RaftProtos.LogEntryProto.class);
when(entryNext.getTerm()).thenReturn(1L);
when(entryNext.getIndex()).thenReturn(2L);
TransactionContext trx = mock(TransactionContext.class);
ContainerStateMachine.Context context = mock(ContainerStateMachine.Context.class);
when(trx.getStateMachineContext()).thenReturn(context);
Expand Down Expand Up @@ -167,7 +170,7 @@ public void testWriteFailure(boolean failWithException) throws ExecutionExceptio
ContainerProtos.DatanodeBlockID.newBuilder().setContainerID(2).setLocalID(1).build()).build())
.setContainerID(2)
.setDatanodeUuid(UUID.randomUUID().toString()).build());
stateMachine.write(entry, trx).exceptionally(throwableSetter).get();
stateMachine.write(entryNext, trx).exceptionally(throwableSetter).get();
verify(dispatcher, times(0)).dispatch(any(ContainerProtos.ContainerCommandRequestProto.class),
any(DispatcherContext.class));
assertInstanceOf(StorageContainerException.class, throwable.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@

package org.apache.hadoop.ozone.container.common.transport.server.ratis;

import org.apache.ozone.test.tag.Flaky;

/**
* Test class to ContainerStateMachine class for follower.
*/
@Flaky("HDDS-12602")
public class TestContainerStateMachineFollower extends TestContainerStateMachine {
public TestContainerStateMachineFollower() {
super(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@

package org.apache.hadoop.ozone.container.common.transport.server.ratis;

import org.apache.ozone.test.tag.Flaky;

/**
* Test class to ContainerStateMachine class for leader.
*/
@Flaky("HDDS-12602")
public class TestContainerStateMachineLeader extends TestContainerStateMachine {
public TestContainerStateMachineLeader() {
super(true);
Expand Down
Loading