Skip to content
Merged
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 @@ -216,7 +216,8 @@ private void handleLoadFailure(final Pair<String, Boolean> filePair, final TSSta
"Rejecting auto load tsfile {} (isGeneratedByPipe = {}) due to memory constraints, will retry later.",
filePair.getLeft(),
filePair.getRight());
} else if (status.getMessage() != null && status.getMessage().contains("read only")) {
} else if (CommonDescriptor.getInstance().getConfig().isReadOnly()
|| (status.getMessage() != null && status.getMessage().contains("read only"))) {
LOGGER.info(
"Rejecting auto load tsfile {} (isGeneratedByPipe = {}) due to the system is read only, will retry later.",
filePair.getLeft(),
Expand Down Expand Up @@ -245,7 +246,8 @@ private void handleOtherException(final Pair<String, Boolean> filePair, final Ex
"Rejecting auto load tsfile {} (isGeneratedByPipe = {}) due to memory constraints, will retry later.",
filePair.getLeft(),
filePair.getRight());
} else if (e.getMessage() != null && e.getMessage().contains("read only")) {
} else if (CommonDescriptor.getInstance().getConfig().isReadOnly()
|| (e.getMessage() != null && e.getMessage().contains("read only"))) {
LOGGER.info(
"Rejecting auto load tsfile {} (isGeneratedByPipe = {}) due to the system is read only, will retry later.",
filePair.getLeft(),
Expand Down