diff options
author | buchgr <buchgr@google.com> | 2017-09-12 13:49:21 +0200 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2017-09-12 14:09:13 +0200 |
commit | 0ca8f4bbfb3673cf8a0a34cc5b487023d70561c5 (patch) | |
tree | f2c1a2a4d9fa0f95e26c1d167277da2135180d6f /combine_distfiles.py | |
parent | bbb4a401d45c1a814e89a056781b635282e010f7 (diff) |
bes: cancel stream on bazel shutdown
Introduce a new method BuildEventTransport#closeNow() which forcefully
closes the BES upload even if there are still events to upload. This
is executed if the bazel server is being shutdown.
The implementation in the BuildEventServiceTransport works by shutting
down the ExecutorService handling the upload, which in turn will
interrupt the upload thread, which in turn will cancel the streaming RPC.
The BuildEventServiceTransport will wait up to 100ms for that
cancellation to happen.
Also fix a bug where the BES transport would not wait for ACKS.
PiperOrigin-RevId: 168359947
Diffstat (limited to 'combine_distfiles.py')
0 files changed, 0 insertions, 0 deletions