299300301302303304305306307308309
rateLimiter.acquire(batchSize); int partitionCount = 0; while (partitionCount < batchSize) { Partition p = op.generator.generate(op); if (p == null) break; partitions[partitionCount++] = p; }