We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f241857 commit 1932715Copy full SHA for 1932715
1 file changed
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/TsFileResource.java
@@ -639,11 +639,13 @@ public void removeModFile() throws IOException {
639
* file physically.
640
*/
641
public boolean remove() {
642
- forceMarkDeleted();
643
// To release the memory occupied by pipe if held by it
644
// Note that pipe can safely handle the case that the time index does not exist
645
isEmpty();
646
- degradeTimeIndex();
+ if (getStatus() != TsFileResourceStatus.UNCLOSED) {
+ degradeTimeIndex();
647
+ }
648
+ forceMarkDeleted();
649
try {
650
fsFactory.deleteIfExists(file);
651
fsFactory.deleteIfExists(
0 commit comments