-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Offload potentially expensive query planning steps to async tasks. (#…
…2575) * Offload potentially expensive query planning steps to async tasks. * fix doc build * combine similar try-catch blocks * log exception with error message, throw dedicated exception for async operations * Extract common code for getting field sets to method --------- Co-authored-by: Moon Moon <[email protected]>
- Loading branch information
1 parent
7329cff
commit 8b10852
Showing
17 changed files
with
868 additions
and
125 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...e/query-core/src/main/java/datawave/query/exceptions/DatawaveAsyncOperationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package datawave.query.exceptions; | ||
|
||
import datawave.query.planner.DefaultQueryPlanner; | ||
|
||
/** | ||
* An exception thrown when the {@link DefaultQueryPlanner} encounters a problem during an async operation like fetching field sets or serializing iterator | ||
* options in another thread | ||
*/ | ||
public class DatawaveAsyncOperationException extends RuntimeException { | ||
|
||
private static final long serialVersionUID = -5455973957749708049L; | ||
|
||
public DatawaveAsyncOperationException() { | ||
super(); | ||
} | ||
|
||
public DatawaveAsyncOperationException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public DatawaveAsyncOperationException(String message) { | ||
super(message); | ||
} | ||
|
||
public DatawaveAsyncOperationException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
protected DatawaveAsyncOperationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.