memoryLimitedJobRunner, jobRunner, ticker, keys, fg, persistentFileTracker, null);
assertEquals(i, countEncodedCrossSegments(resumed));
resumed.start();
// The memoryLimitedJobRunner will only encode one segment at a time.
// Wait for it to encode one segment.
memoryLimitedJobRunner.shutdown();
memoryLimitedJobRunner.waitForShutdown();
executor.waitForIdle();
assertEquals(i+1, countEncodedCrossSegments(resumed));
}
}