Search in sources :

Example 6 with WriteCancelledException

use of com.twitter.distributedlog.exceptions.WriteCancelledException in project distributedlog by twitter.

the class EnvelopedEntryWriter method reset.

@Override
public synchronized void reset() {
    cancelPromises(new WriteCancelledException(logName, "Record Set is reset"));
    count = 0;
    this.buffer.reset();
}
Also used : WriteCancelledException(com.twitter.distributedlog.exceptions.WriteCancelledException)

Aggregations

WriteCancelledException (com.twitter.distributedlog.exceptions.WriteCancelledException)6 BKTransmitException (com.twitter.distributedlog.exceptions.BKTransmitException)3 ZKDistributedLock (com.twitter.distributedlog.lock.ZKDistributedLock)3 Future (com.twitter.util.Future)3 ArrayList (java.util.ArrayList)3 LedgerHandle (org.apache.bookkeeper.client.LedgerHandle)3 Test (org.junit.Test)2 EndOfStreamException (com.twitter.distributedlog.exceptions.EndOfStreamException)1 FlushException (com.twitter.distributedlog.exceptions.FlushException)1 InvalidEnvelopedEntryException (com.twitter.distributedlog.exceptions.InvalidEnvelopedEntryException)1 LockingException (com.twitter.distributedlog.exceptions.LockingException)1 LogRecordTooLongException (com.twitter.distributedlog.exceptions.LogRecordTooLongException)1 TransactionIdOutOfOrderException (com.twitter.distributedlog.exceptions.TransactionIdOutOfOrderException)1 WriteException (com.twitter.distributedlog.exceptions.WriteException)1 IOException (java.io.IOException)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 BKException (org.apache.bookkeeper.client.BKException)1