9,
9,
9,
0,
RoutingStrategyType.TO_ALL_STRATEGY,
new UnreachableStoreException("no go"));
try {
s2.put(aKey, new Versioned<byte[]>(aValue), aTransform);
fail("Failure is expected");
} catch(InsufficientOperationalNodesException e) { /* expected */
}
assertOperationalNodes(0);
// test get
cluster = getNineNodeCluster();
s1 = getStore(cluster,
1,
9,
9,
9,
0,
RoutingStrategyType.TO_ALL_STRATEGY,
new VoldemortException());
try {
s1.get(aKey, aTransform);
fail("Failure is expected");
} catch(InsufficientOperationalNodesException e) { /* expected */
}
assertOperationalNodes(9);
cluster = getNineNodeCluster();
s2 = getStore(cluster,
1,
9,
9,
9,
0,
RoutingStrategyType.TO_ALL_STRATEGY,
new UnreachableStoreException("no go"));
try {
s2.get(aKey, aTransform);
fail("Failure is expected");
} catch(InsufficientOperationalNodesException e) { /* expected */
}
assertOperationalNodes(0);
// test delete
cluster = getNineNodeCluster();
s1 = getStore(cluster,
1,
9,
9,
9,
0,
RoutingStrategyType.TO_ALL_STRATEGY,
new VoldemortException());
try {
s1.delete(aKey, new VectorClock());
fail("Failure is expected");
} catch(InsufficientOperationalNodesException e) { /* expected */
}
assertOperationalNodes(9);
cluster = getNineNodeCluster();
s2 = getStore(cluster,
1,
9,
9,
9,
0,
RoutingStrategyType.TO_ALL_STRATEGY,
new UnreachableStoreException("no go"));
try {
s2.delete(aKey, new VectorClock());
fail("Failure is expected");
} catch(InsufficientOperationalNodesException e) { /* expected */
}