diff --git a/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/functional/TestHoodieClientOnCopyOnWriteStorage.java b/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/functional/TestHoodieClientOnCopyOnWriteStorage.java index a0050b3a730cb..9787387a1eab7 100644 --- a/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/functional/TestHoodieClientOnCopyOnWriteStorage.java +++ b/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/functional/TestHoodieClientOnCopyOnWriteStorage.java @@ -1165,7 +1165,7 @@ public void testUpdateRejectForClustering() throws IOException { // 3. insert one record with no updating reject exception, and not merge the small file, just generate a new file group String commitTime3 = "003"; - insertBatchRecords(client, commitTime3, 1, 1).getKey(); + insertBatchRecords(client, commitTime3, 1, 1); List fileGroupIds2 = table.getFileSystemView().getAllFileGroups(testPartitionPath) .map(fileGroup -> fileGroup.getFileGroupId().getFileId()).collect(Collectors.toList()); assertEquals(3, fileGroupIds2.size()); @@ -1178,7 +1178,7 @@ public void testUpdateRejectForClustering() throws IOException { String assertMsg = String.format("Not allowed to update the clustering files in partition: %s " + "For pending clustering operations, we are not going to support update for now.", testPartitionPath); assertThrows(HoodieUpsertException.class, () -> { - writeClient.upsert(jsc.parallelize(insertsAndUpdates3, 1), commitTime3).collect(); }, assertMsg); + writeClient.upsert(jsc.parallelize(insertsAndUpdates3, 1), commitTime4).collect(); }, assertMsg); // 5. insert one record with no updating reject exception, will merge the small file String commitTime5 = "005";