-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] bazel client failure: Directory.getFilesList() is null #1299
Comments
You're not seeing anything in serverside logs from this? |
I would expect the log line to be prefixed with "error occurred during execution", which is logged for any exception save for one thrown during watchExecution or execute on ShardInstance, both of which don't have any codepaths that I can see to getFilesList(). |
@luxe have you seen this since? |
This happens when we have to revisit a directory with descendent directories that are either empty (zero size on digest) or were missing from the directories index in the previous pass (some fully replicated dir in the input tree). Both of these need to be guarded against - normal default directory instance for the empty dir, failed precondition for the extra path to a missing directory. |
Directories reevaluated only under the enumeration hierarchy must still be guarded against empty child directories in their checks, and must handle child directories missing in the index safely, with precondition failures matching their outputs. Order is not guaranteed in precondition output, but tests now guard this case. Fixes #1299
Directories reevaluated only under the enumeration hierarchy must still be guarded against empty child directories in their checks, and must handle child directories missing in the index safely, with precondition failures matching their outputs. Order is not guaranteed in precondition output, but tests now guard this case. Fixes #1299
On latest buildfarm, the bazel client prints
Cannot invoke "build.bazel.remote.execution.v2.Directory.getFilesList()" because the return value of "java.util.Map.get(Object)" is null
. Here is the full bazel client stacktrace:This message seems to be comming from buildfarm. bazel would report it here:
https://github.com/bazelbuild/bazel/blob/a691e974d2e4c5fa4a469e1321b18d15ac7e9cfa/src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteExecutor.java#L71
There are a few places in buildfarm where we call
Directory.getFilesList()
, but I'm trying to see why the directory would be null in the first place, and how this would be forwarded back to the client.The text was updated successfully, but these errors were encountered: