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 @@ -416,9 +416,6 @@ public static int getSearchingOffset(Matcher matcher, int at, int range)
return matcher.searchInterruptible(at, range, Option.DEFAULT);
}
catch (InterruptedException interruptedException) {
// The JONI library is compliant with the InterruptedException contract. They reset the interrupted flag before throwing an exception.
// Since the InterruptedException is being caught the interrupt flag must either be recovered or the thread must be terminated.
// Since we are simply throwing a different exception, the interrupt flag must be recovered to propagate the interrupted status to the upper level code.
Thread.currentThread().interrupt();
throw new TrinoException(GENERIC_USER_ERROR, "" +
"Regular expression matching was interrupted, likely because it took too long. " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ private static int getMatchingOffset(Matcher matcher, int at, int range)
return matcher.matchInterruptible(at, range, Option.NONE);
}
catch (InterruptedException interruptedException) {
// The JONI library is compliant with the InterruptedException contract. They reset the interrupted flag before throwing an exception.
// Since the InterruptedException is being caught the interrupt flag must either be recovered or the thread must be terminated.
// Since we are simply throwing a different exception, the interrupt flag must be recovered to propagate the interrupted status to the upper level code.
Thread.currentThread().interrupt();
throw new TrinoException(GENERIC_USER_ERROR, "" +
"Regular expression matching was interrupted, likely because it took too long. " +
Expand Down