bazel: Bazel 8 hangs during build event upload
Description of the bug:
I’m seeing an intermittent issue where a build will fail to exit after uploading build events. Seems like Bazel is waiting for background upload tasks even though they have all completed.
Which category does this issue belong to?
Core
What’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This happens intermittently and I haven’t found a straightforward repro.
Which operating system are you running Bazel on?
Amazon Linux 2023.6.20250115
What is the output of bazel info release?
release 8.0.1
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What’s the output of git remote get-url origin; git rev-parse HEAD ?
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
Seems potentially related to https://github.com/bazelbuild/bazel/issues/21626 but I’m not using remote execution.
Any other information, logs, or outputs that you want to share?
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 38 (12 by maintainers)
Commits related to this issue
- Use `Single.using` instead of `onError`/`onSuccess` for async uploads Users have reported hangs in Bazel's asynchronous remote cache uploads that may be happening because neither `onSuccess` nor `onE... — committed to bazelbuild/bazel by fmeum 2 years ago
- Use `Single.using` instead of `onError`/`onSuccess` for async uploads Users have reported hangs in Bazel's asynchronous remote cache uploads that may be happening because neither `onSuccess` nor `onE... — committed to bazel-io/bazel by fmeum 2 years ago
- [8.1.0] Use `Single.using` instead of `onError`/`onSuccess` for async uploads (#25251) Users have reported hangs in Bazel's asynchronous remote cache uploads that may be happening because neither `on... — committed to bazelbuild/bazel by bazel-io 2 years ago
- Work around https://github.com/bazelbuild/bazel/issues/25232 — committed to fmeum/bazel by fmeum 2 years ago
- Work around https://github.com/bazelbuild/bazel/issues/25232 — committed to fmeum/bazel by fmeum 2 years ago
- Work around https://github.com/bazelbuild/bazel/issues/25232 — committed to fmeum/bazel by fmeum 2 years ago
- Work around https://github.com/bazelbuild/bazel/issues/25232 — committed to fmeum/bazel by fmeum 2 years ago
- Work around https://github.com/bazelbuild/bazel/issues/25232 — committed to fmeum/bazel by fmeum 2 years ago
- Work around https://github.com/bazelbuild/bazel/issues/25232 — committed to fmeum/bazel by fmeum 2 years ago
- Work around https://github.com/bazelbuild/bazel/issues/25232 — committed to fmeum/bazel by fmeum 2 years ago
- Add `--noremote_cache_async` Addressing hanging issue on macOS: https://github.com/bazelbuild/bazel/issues/25232 https://buildkite.com/bazel/google-bazel-presubmit/builds/90602#0195d6ff-3ef7-4962-... — committed to bazelbuild/continuous-integration by meteorcloudy 2 years ago
- Add `--noexperimental_remote_cache_async` on macOS (#2200) Addressing hanging issue on macOS: https://github.com/bazelbuild/bazel/issues/25232 https://buildkite.com/bazel/google-bazel-presubmit/bui... — committed to bazelbuild/continuous-integration by meteorcloudy 2 years ago
- Fix a deadlock when using `--remote_cache_async` and HTTP cache. Fixes #25232. Closes #25786. PiperOrigin-RevId: 745164203 Change-Id: I58cc9f83b6c6cc8cb2c728cfe132e220a7678cea — committed to bazel-io/bazel by coeuvre 2 years ago
- Fix a deadlock when using `--remote_cache_async` and HTTP cache. Fixes #25232. Closes #25786. PiperOrigin-RevId: 745164203 Change-Id: I58cc9f83b6c6cc8cb2c728cfe132e220a7678cea — committed to bazel-io/bazel by coeuvre 2 years ago
- [8.2.0] Fix a deadlock when using `--remote_cache_async` and HTTP cache. (#25788) Fixes #25232. Closes #25786. PiperOrigin-RevId: 745164203 Change-Id: I58cc9f83b6c6cc8cb2c728cfe132e220a7678cea Com... — committed to bazelbuild/bazel by bazel-io 2 years ago
- Add `--noexperimental_remote_cache_async` on macOS (#2200) Addressing hanging issue on macOS: https://github.com/bazelbuild/bazel/issues/25232 https://buildkite.com/bazel/google-bazel-presubmit/buil... — committed to fweikert/continuous-integration by meteorcloudy 2 years ago
- Revert "Add `--noexperimental_remote_cache_async` on macOS" (#2255) https://github.com/bazelbuild/bazel/issues/25232 has been addressed in 8.2.1 Reverts bazelbuild/continuous-integration#2200 — committed to bazelbuild/continuous-integration by meteorcloudy 2 years ago
- Fix a deadlock when using `--remote_cache_async` and HTTP cache. Fixes #25232. Closes #25786. PiperOrigin-RevId: 745164203 Change-Id: I58cc9f83b6c6cc8cb2c728cfe132e220a7678cea — committed to fmeum/bazel by coeuvre 2 years ago
TOMORROW. IT WILL DEFINITELY HAPPEN, AT THE TOP OF MY PRIORITY LIST.
@rkwon-retool it’s not clear to me why it is hanging from the stack dump. Are the log files (
$OUTPUT_BASE/java.log,$OUTPUT_BASE/command.logand$OUTPUT_BASE/server/jvm.out) still around?If not, can you capture the logs along with the stack dump next it happens?
@bazel-io fork 8.2.0
--noremote_cache_asyncis the only workaround I see at the moment.@bazel-io fork 8.2.0
We (@tanium) were seeing frequent hangs with 8.0.1. Hangs seem to be resolved with 8.1.0 rc4.
Thank you!
@bazel-io fork 8.1.0