|
@@ -744,7 +744,7 @@ class MilvusClientTest {
|
|
|
|
|
|
long previousSegmentSize = segmentInfo.getLong("data_size");
|
|
long previousSegmentSize = segmentInfo.getLong("data_size");
|
|
|
|
|
|
- assertTrue(client.deleteByIds(randomCollectionName, vectorIds.subList(0, 100)).ok());
|
|
|
|
|
|
+ assertTrue(client.deleteByIds(randomCollectionName, vectorIds.subList(0, (int) size / 2)).ok());
|
|
assertTrue(client.flush(randomCollectionName).ok());
|
|
assertTrue(client.flush(randomCollectionName).ok());
|
|
assertTrue(client.compact(randomCollectionName).ok());
|
|
assertTrue(client.compact(randomCollectionName).ok());
|
|
|
|
|
|
@@ -786,7 +786,7 @@ class MilvusClientTest {
|
|
|
|
|
|
long previousSegmentSize = segmentInfo.getLong("data_size");
|
|
long previousSegmentSize = segmentInfo.getLong("data_size");
|
|
|
|
|
|
- assertTrue(client.deleteByIds(randomCollectionName, vectorIds.subList(0, 100)).ok());
|
|
|
|
|
|
+ assertTrue(client.deleteByIds(randomCollectionName, vectorIds.subList(0, (int) size / 2)).ok());
|
|
assertTrue(client.flush(randomCollectionName).ok());
|
|
assertTrue(client.flush(randomCollectionName).ok());
|
|
assertTrue(client.compactAsync(randomCollectionName).get().ok());
|
|
assertTrue(client.compactAsync(randomCollectionName).get().ok());
|
|
|
|
|