static LedgerHandle openRead ( long ledgerId , BookKeeper bookKeeper , BookKeeperConfig config ) throws DurableDataLogException { try { return Exceptions . handleInterruptedCall ( ( ) -> bookKeeper . openLedgerNoRecovery ( ledgerId , LEDGER_DIGEST_TYPE , config . getBKPassword ( ) ) ) ; } catch ( BKException bkEx ) { throw new DurableDataLogException ( String . format ( "Unable to open-read ledger %d." , ledgerId ) , bkEx ) ; } }
Opens a ledger for reading . This operation does not fence out the ledger .