-
Notifications
You must be signed in to change notification settings - Fork 981
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release query resource while exception happened in query producer thread
- Loading branch information
1 parent
6ba8aa8
commit 7fa60f1
Showing
6 changed files
with
96 additions
and
51 deletions.
There are no files selected for viewing
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
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
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
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
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
16 changes: 16 additions & 0 deletions
16
tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/ExceptionBatchData.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,16 @@ | ||
package org.apache.iotdb.tsfile.read.common; | ||
|
||
|
||
public class ExceptionBatchData extends BatchData { | ||
|
||
public Exception exception; | ||
|
||
public ExceptionBatchData(Exception exception) { | ||
this.exception = exception; | ||
} | ||
|
||
@Override | ||
public boolean hasCurrent() { | ||
throw new UnsupportedOperationException("hasCurrent is not supported for ExceptionBatchData"); | ||
} | ||
} |