Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void put(CACHEKEY cacheKey, CACHEVALUE value) {
}

public void cleanup(List<Long> epochs) {
executorService.submit(() -> evictCache(epochs));
executorService.execute(() -> evictCache(epochs));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ReplicationSupervisor(
*/
public void addTask(ReplicationTask task) {
if (containersInFlight.add(task.getContainerId())) {
executor.submit(new TaskRunner(task));
executor.execute(new TaskRunner(task));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void concurrentReadOfSameFile() throws Exception {
AtomicBoolean failed = new AtomicBoolean();
for (int i = 0; i < threads; i++) {
final int threadNumber = i;
executor.submit(() -> {
executor.execute(() -> {
try {
ByteBuffer readBuffer = ChunkUtils.readData(file, chunkInfo, stats);
LOG.info("Read data ({}): {}", threadNumber,
Expand Down Expand Up @@ -120,7 +120,7 @@ public void concurrentProcessing() throws Exception {
for (int i = 0; i < threads; i++) {
Path path = Files.createTempFile(PREFIX, String.valueOf(i));
paths.add(path);
executor.submit(() -> {
executor.execute(() -> {
ChunkUtils.processFileExclusively(path, () -> {
try {
Thread.sleep(perThreadWait);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public Void call() throws Exception {
LOG.info("Buffer size: {} bytes", bufferSize);
LOG.info("validateWrites : {}", validateWrites);
for (int i = 0; i < numOfThreads; i++) {
executor.submit(new ObjectCreator());
executor.execute(new ObjectCreator());
}

Thread validator = null;
Expand Down