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 @@ -85,10 +85,12 @@ public MemTableFlushTask(IMemTable memTable, RestorableTsFileIOWriter writer, St
*/
public void syncFlushMemTable()
throws ExecutionException, InterruptedException {
LOGGER.info("The memTable size of SG {} is {}, the avg series points num in chunk is {} ",
LOGGER.info(
"The memTable size of SG {} is {}, the avg series points num in chunk is {}, total timeseries number is {}",
storageGroup,
memTable.memSize(),
memTable.getTotalPointsNum() / memTable.getSeriesNumber());
memTable.getTotalPointsNum() / memTable.getSeriesNumber(),
memTable.getSeriesNumber());

long estimatedTemporaryMemSize = 0L;
if (config.isEnableMemControl() && SystemInfo.getInstance().isEncodingFasterThanIo()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public boolean hasNext() {
batchLogReader = new BatchLogReader(ByteBuffer.wrap(buffer));
fileCorrupted = fileCorrupted || batchLogReader.isFileCorrupted();
} catch (Exception e) {
logger.error("Cannot read more PhysicalPlans from {} because", filepath, e);
logger.error(
"Cannot read more PhysicalPlans from {}, successfully read index is {}. The reason is",
idx, filepath, e);
fileCorrupted = true;
return false;
}
Expand Down Expand Up @@ -122,6 +124,7 @@ public void close() {
public void open(File logFile) throws FileNotFoundException {
close();
logStream = new DataInputStream(new BufferedInputStream(new FileInputStream(logFile)));
logger.info("open WAL file: {} size is {}", logFile.getName(), logFile.length());
this.filepath = logFile.getPath();
idx = 0;
}
Expand Down