SteveYurongSu commented on code in PR #11285:
URL: https://github.com/apache/iotdb/pull/11285#discussion_r1355974149
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/utils/WALInsertNodeCache.java:
##########
@@ -88,7 +88,16 @@ public InsertNode getInsertNode(WALEntryPosition position) {
}
if (pair.getRight() == null) {
- pair.setRight(parse(pair.getLeft()));
+ try {
+ pair.setRight(parse(ByteBuffer.wrap(pair.getLeft().array())));
+ } catch (Exception e) {
+ logger.error(
+ "Parsing failed when recovering insertNode from wal, walFile:{},
position:{}, size:{}, exception:",
+ position.getWalFile(),
+ position.getPosition(),
+ position.getSize(),
+ e);
+ }
Review Comment:
throw
--
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]