Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ public boolean isFinished()
return splitSourceFuture.get().isFinished();
}
catch (InterruptedException | ExecutionException e) {
if (e instanceof InterruptedException) {
Thread.currentThread().interrupt();
}
throw new RuntimeException(e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ public Iterator<PinotDataTableWithSize> queryPinot(ConnectorSession session, Str
return pinotDataTableWithSizeBuilder.build().iterator();
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new PinotException(PINOT_EXCEPTION, Optional.of(query), "Pinot query execution was interrupted", e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ private void runCommit(long transactionId, HandleConsumer<SQLException> callback
SECONDS.sleep(multiplyExact(attempt, 2));
}
catch (InterruptedException ie) {
Thread.currentThread().interrupt();
throw metadataError(ie);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void recordCreatedShard(long transactionId, UUID shardUuid)
MILLISECONDS.sleep(millis + ThreadLocalRandom.current().nextLong(0, millis));
}
catch (InterruptedException ie) {
Thread.currentThread().interrupt();
throw metadataError(ie);
}
}
Expand Down