Skip to content

Commit

Permalink
Fix speedcore sync error behavior on attach
Browse files Browse the repository at this point in the history
This code was not applying detachDatabase when .sync() crashed.

Fixes a regression from: #10897

pr-link: #10941
change-id: cid-01f908c6a21b6aed587372fb50eb1890aa317e5b
  • Loading branch information
bradyoo committed Feb 19, 2020
1 parent 7dca7ae commit 8bf8381
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public SyncStatus attachDatabase(JournalContext journalContext, String udbType,
return status;
} catch (Exception e) {
// Failed to connect to and sync the udb.
syncError = true;
throw new IOException(String
.format("Failed to connect underDb for Alluxio db '%s': %s", dbName,
e.getMessage()), e);
Expand Down

0 comments on commit 8bf8381

Please sign in to comment.