Skip to content

Commit

Permalink
[Enhancement](multi-catalog) merge hms partition events.
Browse files Browse the repository at this point in the history
  • Loading branch information
王翔宇 authored and morningman committed Sep 8, 2023
1 parent eb0b978 commit 3788b7c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,11 @@ public void testCreateBatchEvents() {
EventProducer initProducer = new EventProducer(initProportions);
EventProducer producer = new EventProducer(proportions);

for (int i = 0; i < 100; i++) {
for (int i = 0; i < 200; i++) {
// create a test catalog and do initialization
MockCatalog testCatalog = new MockCatalog(testCtl);
List<MetastoreEvent> initEvents = Lists.newArrayListWithCapacity(1000);
for (int j = 0; j < 10000; j++) {
for (int j = 0; j < 1000; j++) {
initEvents.add(initProducer.produceOneEvent(j));
}
for (MetastoreEvent event : initEvents) {
Expand All @@ -451,7 +451,7 @@ public void testCreateBatchEvents() {
MockCatalog validateCatalog = testCatalog.copy();

List<MetastoreEvent> events = Lists.newArrayListWithCapacity(1000);
for (int j = 0; j < 10000; j++) {
for (int j = 0; j < 1000; j++) {
events.add(producer.produceOneEvent(j));
}
List<MetastoreEvent> mergedEvents = factory.createBatchEvents(testCtl, events);
Expand Down

0 comments on commit 3788b7c

Please sign in to comment.