diff --git a/integration-test/src/test/java/org/apache/iotdb/session/it/IoTDBSessionSimpleIT.java b/integration-test/src/test/java/org/apache/iotdb/session/it/IoTDBSessionSimpleIT.java index 77ce160cbf56..f5272726ae8c 100644 --- a/integration-test/src/test/java/org/apache/iotdb/session/it/IoTDBSessionSimpleIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/session/it/IoTDBSessionSimpleIT.java @@ -606,6 +606,10 @@ public void insertTabletWithStringValuesTest() { while (dataSet.hasNext()) { RowRecord rowRecord = dataSet.next(); List fields = rowRecord.getFields(); + // this test may occasionally fail by IndexOutOfBoundsException + if (fields.size() != 7) { + fail("The number of fields is not correct. fields values: " + fields); + } assertEquals(fields.get(5).getBinaryV(), fields.get(6).getBinaryV()); } } catch (Exception e) {