Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Add support for async worker processes #2547

Merged
merged 7 commits into from
Oct 13, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix windows tests
Don't crash all of buck when a worker process fails.
  • Loading branch information
mikekap committed Oct 2, 2020
commit c767abaa5b4b5ab7f1443fd78541d64fad3d8b07
2 changes: 0 additions & 2 deletions src/com/facebook/buck/worker/WorkerProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ private void readerLoop() {
return;
}
LOG.error(t, "Worker pool reader process failed");
Throwables.throwIfUnchecked(t);
throw new RuntimeException(t);
}
}

Expand Down
6 changes: 5 additions & 1 deletion test/com/facebook/buck/worker/FakeWorkerProcessProtocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ public WorkerProcessProtocol.CommandResponse receiveNextCommandResponse() throws
if (isClosed) {
throw new RuntimeException("Closed");
}
return new WorkerProcessProtocol.CommandResponse(messageIds.poll(), 0);
try {
return new WorkerProcessProtocol.CommandResponse(messageIds.take(), 0);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}

@Override
Expand Down