Skip to content

Commit

Permalink
start a test of backpointers with hole-filling.
Browse files Browse the repository at this point in the history
  • Loading branch information
dahliamalkhi committed Dec 24, 2016
1 parent 4c7cccc commit 6468075
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/src/test/java/org/corfudb/runtime/view/StreamViewTest.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package org.corfudb.runtime.view;

import lombok.Getter;
import org.corfudb.protocols.wireprotocol.CorfuMsgType;
import org.corfudb.protocols.wireprotocol.LogData;
import org.corfudb.protocols.wireprotocol.TokenResponse;
import org.corfudb.runtime.CorfuRuntime;
import org.corfudb.runtime.clients.SequencerClient;
import org.corfudb.runtime.clients.TestRule;
import org.junit.Before;
import org.junit.Test;

Expand Down Expand Up @@ -183,4 +185,14 @@ public void streamWithHoleFill()
assertThat(sv.read().getPayload(getRuntime()))
.isEqualTo(testPayload2);
}

/* @Test
public void backpointersWithHoleFill()
throws Exception {
// drop write requests from this client, so we can force hole filling to take place
addClientRule(r, new TestRule().matches(corfuMsg -> { return corfuMsg.getMsgType() == CorfuMsgType.WRITE ; }).drop());
}*/
}

0 comments on commit 6468075

Please sign in to comment.