fanhualta commented on a change in pull request #3191:
URL: https://github.com/apache/iotdb/pull/3191#discussion_r639882219
##########
File path: cluster/src/test/java/org/apache/iotdb/cluster/log/LogParserTest.java
##########
@@ -98,4 +104,14 @@ public void testEmptyContentLog() throws
UnknownLogTypeException {
Log serialized = logParser.parse(byteBuffer);
assertEquals(log, serialized);
}
+
+ @Test
+ public void testLogPlan() throws IOException, IllegalPathException,
UnknownLogTypeException {
+ AddNodeLog log = new AddNodeLog(TestUtils.seralizePartitionTable,
TestUtils.getNode(0));
+ log.setMetaLogIndex(1);
+ LogPlan logPlan = new LogPlan(log.serialize());
+ ByteBuffer buffer =
ByteBuffer.wrap(PlanSerializer.getInstance().serialize(logPlan));
+ PhysicalPlan plan = PhysicalPlan.Factory.create(buffer);
+ LogParser.getINSTANCE().parse(((LogPlan) plan).getLog());
+ }
Review comment:
Add fail() if exception occurs.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]