Search in sources :

Example 1 with ReadLastConfirmedCommand

use of org.apache.distributedlog.tools.DistributedLogTool.ReadLastConfirmedCommand in project bookkeeper by apache.

the class TestDistributedLogTool method testToolReadLastConfirmed.

@Test(timeout = 60000)
public void testToolReadLastConfirmed() throws Exception {
    ReadLastConfirmedCommand cmd = new ReadLastConfirmedCommand();
    cmd.setUri(defaultUri);
    cmd.setLedgerId(99999999);
    // correct functionality.
    try {
        cmd.runCmd();
    } catch (BKNoSuchLedgerExistsException ex) {
    }
}
Also used : BKNoSuchLedgerExistsException(org.apache.bookkeeper.client.BKException.BKNoSuchLedgerExistsException) ReadLastConfirmedCommand(org.apache.distributedlog.tools.DistributedLogTool.ReadLastConfirmedCommand) Test(org.junit.Test)

Aggregations

BKNoSuchLedgerExistsException (org.apache.bookkeeper.client.BKException.BKNoSuchLedgerExistsException)1 ReadLastConfirmedCommand (org.apache.distributedlog.tools.DistributedLogTool.ReadLastConfirmedCommand)1 Test (org.junit.Test)1