Skip to content

Commit

Permalink
Issue #9270 . Bug with exception on WAL close was fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Jul 14, 2020
1 parent 120df39 commit 58ee146
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import java.util.NavigableSet;
import java.util.TreeMap;
import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ConcurrentNavigableMap;
import java.util.concurrent.ConcurrentSkipListMap;
Expand Down Expand Up @@ -1417,6 +1418,8 @@ public void close(final boolean flush) throws IOException {

try {
recordsWriterFuture.get();
} catch (CancellationException e) {
//ignoring, we cancelled scheduled task few lines above
} catch (InterruptedException | ExecutionException e) {
throw OException.wrapException(
new OStorageException("Error during writing of WAL records in storage " + storageName),
Expand Down

0 comments on commit 58ee146

Please sign in to comment.