asyncMemcache.clearAll();
}
@Test
public void testErrorHandler() {
ConsistentLogAndContinueErrorHandler handler = new ConsistentLogAndContinueErrorHandler(Level.ALL);
ConsistentLogAndContinueErrorHandler returned = initConsistentErrorHandler(memcache, handler);
ConsistentLogAndContinueErrorHandler asyncHandler = new ConsistentLogAndContinueErrorHandler(Level.ALL);
ConsistentLogAndContinueErrorHandler asyncReturned = initConsistentErrorHandler(asyncMemcache, asyncHandler);
assertTrue(handler.equals(returned));
assertTrue(asyncHandler.equals(asyncReturned));
int recordSize = (1024 * 1024) * 2; // 2MB which should fail.