1168: CompletableFuture may not always complete.

This commit is contained in:
Raman 2018-12-17 10:05:23 -05:00
parent 1038675568
commit c5b0cf44f8

View File

@ -767,11 +767,11 @@ public final class DrawableDB {
} }
} }
} catch (SQLException ex) { } catch (SQLException ex) {
logger.log(Level.SEVERE, "Failed to get group seen", ex); //NON-NLS completeExceptionally(ex);
} }
} }
} }
// Callback to process result of seen query // Callback to process result of seen query
GroupSeenQueryResultProcessor queryResultProcessor = new GroupSeenQueryResultProcessor(); GroupSeenQueryResultProcessor queryResultProcessor = new GroupSeenQueryResultProcessor();
try { try {
@ -784,7 +784,7 @@ public final class DrawableDB {
return queryResultProcessor.get(); return queryResultProcessor.get();
} catch (ExecutionException | InterruptedException | TskCoreException ex) { } catch (ExecutionException | InterruptedException | TskCoreException ex) {
String msg = String.format("Failed to get is group seen for group key %s", groupKey.getValueDisplayName()); //NON-NLS String msg = String.format("Failed to get is group seen for group key %s", groupKey.getValueDisplayName()); //NON-NLS
logger.log(Level.WARNING, msg, ex); logger.log(Level.SEVERE, msg, ex);
} }
return false; return false;