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 @@ -65,6 +65,7 @@

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.AccessDeniedException;
import java.nio.file.NoSuchFileException;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -115,7 +116,7 @@ public TFetchDeviceEntrySegmentResp fetchDeviceEntrySegment(
return new TFetchDeviceEntrySegmentResp(
new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode()))
.setPayload(payload);
} catch (NoSuchFileException e) {
} catch (NoSuchFileException | AccessDeniedException e) {
LOGGER.warn(
String.format(
DataNodeQueryMessages
Expand Down Expand Up @@ -147,8 +148,7 @@ public TSStatus finishDeviceEntrySegment(String queryId, String planNodeId) {
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_DATA_SET_ASYNCHRONOUSLY_QUERYID_ARG_PLANNODEID_ARG_9106C4C5,
queryId,
planNodeId),
e);
planNodeId));
}
});
return new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ private void releaseResource(Throwable t) {
String.format(
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_SPILL_DIRECTORY_FOR_QUERY_ARG_53D9C1FC,
context.getQueryId().getId()),
e);
context.getQueryId().getId()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ public void close() throws IOException {
String.format(
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_SPILL_DIRECTORY_FOR_QUERY_ARG_53D9C1FC,
temporaryFile),
e);
temporaryFile));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ private void closeCurrentSegment(boolean fullyConsumed) throws IOException {
String.format(
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_SPILL_DIRECTORY_FOR_QUERY_ARG_53D9C1FC,
currentSegment),
e);
currentSegment));
}
}
currentSegment = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public void deleteSegment(String queryId, String dataSetId, int segmentId) throw
String.format(
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_SPILL_DIRECTORY_FOR_QUERY_ARG_53D9C1FC,
file),
e);
file));
}
}

Expand Down Expand Up @@ -180,8 +179,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attributes)
String.format(
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_SPILL_DIRECTORY_FOR_QUERY_ARG_53D9C1FC,
file),
e);
file));
}
return FileVisitResult.CONTINUE;
}
Expand All @@ -198,8 +196,7 @@ public FileVisitResult visitFileFailed(Path file, IOException exception)
String.format(
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_SPILL_DIRECTORY_FOR_QUERY_ARG_53D9C1FC,
file),
exception);
file));
}
return FileVisitResult.CONTINUE;
}
Expand All @@ -223,8 +220,7 @@ public FileVisitResult postVisitDirectory(Path dir, IOException exception)
String.format(
DataNodeQueryMessages
.LOG_FAILED_TO_CLEAN_DEVICEENTRY_SPILL_DIRECTORY_FOR_QUERY_ARG_53D9C1FC,
dir),
e);
dir));
}
return FileVisitResult.CONTINUE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.nio.file.AccessDeniedException;
import java.nio.file.NoSuchFileException;
import java.util.List;

Expand Down Expand Up @@ -57,7 +58,7 @@ public List<DeviceEntry> nextBatch() throws IOException {
spillManager.readSegment(
handle.getQueryId(), handle.getPlanNodeId().getId(), segmentId));
releaseSegment(segmentId);
} catch (NoSuchFileException e) {
} catch (NoSuchFileException | AccessDeniedException e) {
LOGGER.warn(
String.format(
DataNodeQueryMessages
Expand Down
Loading