Skip to content

Commit

Permalink
Removed interruped exception from signature
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat committed Nov 10, 2018
1 parent b7ab005 commit cfef277
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ public SettableFuture<Boolean> getResult() {
* never be unfenced. Fencing a fenced ledger has no effect.
*/
public SettableFuture<Boolean> fenceLedger(long ledgerId, byte[] masterKey)
throws IOException, BookieException, InterruptedException {
throws IOException, BookieException {
LedgerDescriptor handle = handles.getHandle(ledgerId, masterKey);
return handle.fenceAndLogInJournal(getJournal(ledgerId));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static ByteBuf createLedgerFenceEntry(Long ledgerId) {
*
* <p>We should satisfy the future only after we complete logging fence entry in Journal
*/
abstract SettableFuture<Boolean> fenceAndLogInJournal(Journal journal) throws IOException, InterruptedException;
abstract SettableFuture<Boolean> fenceAndLogInJournal(Journal journal) throws IOException;

abstract long addEntry(ByteBuf entry) throws IOException, BookieException;
abstract ByteBuf readEntry(long entryId) throws IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ ByteBuf getExplicitLac() {
return ledgerStorage.getExplicitLac(ledgerId);
}

synchronized SettableFuture<Boolean> fenceAndLogInJournal(Journal journal)
throws IOException, InterruptedException {
synchronized SettableFuture<Boolean> fenceAndLogInJournal(Journal journal) throws IOException {
boolean success = this.setFenced();
if (success) {
// fenced for first time, we should add the key to journal ensure we can rebuild.
Expand Down

0 comments on commit cfef277

Please sign in to comment.