3839404142434445464748
@Override public Pair<K, Versioned<V>> next() { if(Math.random() > FAIL_PROBABILITY) return iterator.next(); throw new VoldemortException("Failing now !!"); } @Override public void remove() {} };
6768697071727374757677
@Override public K next() { if(Math.random() > FAIL_PROBABILITY) return iterator.next(); throw new VoldemortException("Failing now !!"); } @Override public void remove() {} };
96979899100101102103104105106
125126127128129130131132133134135
139140141142143144145
public void truncate() { if(Math.random() > FAIL_PROBABILITY) { innerStorageEngine.truncate(); } throw new VoldemortException("Failing now !!"); }
4041424344454647
public boolean delete(K key, Version version) throws VoldemortException { try { Thread.sleep(sleepTimeMs); return getInnerStore().delete(key, version); } catch(InterruptedException e) { throw new VoldemortException(e); } }
5051525354555657
public List<Versioned<V>> get(K key, T transforms) throws VoldemortException { try { Thread.sleep(sleepTimeMs); return getInnerStore().get(key, transforms); } catch(InterruptedException e) { throw new VoldemortException(e); } }
118119120121122123124125
private byte[] inflate(CompressionStrategy compressionStrategy, byte[] data) throws VoldemortException { try { return compressionStrategy.inflate(data); } catch(IOException e) { throw new VoldemortException(e); } }
6162636465666768
throws VoldemortException { try { Thread.sleep(sleepTimeMs); return getInnerStore().getAll(keys, transforms); } catch(InterruptedException e) { throw new VoldemortException(e); } }
127128129130131132133134
private byte[] deflate(CompressionStrategy compressionStrategy, byte[] data) throws VoldemortException { try { return compressionStrategy.deflate(data); } catch(IOException e) { throw new VoldemortException(e); } }