JackieTien97 commented on code in PR #16999:
URL: https://github.com/apache/iotdb/pull/16999#discussion_r2671030759
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/read/reader/chunk/DiskChunkLoader.java:
##########
@@ -86,6 +92,21 @@ public IChunkReader getChunkReader(IChunkMetadata
chunkMetaData, Filter globalTi
chunkMetaData.getDeleteIntervalList(),
chunkMetaData.getStatistics(),
context);
+ byte chunkType = chunk.getHeader().getChunkType();
+ if (chunkType != MetaMarker.CHUNK_HEADER
+ && chunkType != MetaMarker.ONLY_ONE_PAGE_CHUNK_HEADER) {
+ if
(context.getQueryStatistics().getChunkWithMetadataErrorsCount().getAndAdd(1) ==
0) {
+ LOGGER.warn(
+ "Unexpected chunk type detected when reading non-aligned chunk
reader. "
+ + "The chunk metadata indicates a non-aligned chunk, "
+ + "but the actual chunk read from tsfile is a value chunk of
aligned series. "
+ + "tsFile={}, chunkOffset={}, chunkType={}",
+ resource.getTsFilePath(),
+ chunkMetaData.getOffsetOfChunkHeader(),
+ chunkType);
Review Comment:
don't print it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]