Skip to content

Enable combined disk cache for grpc caching protocol.#10233

Closed
buchgr wants to merge 1 commit intobazelbuild:masterfrom
buchgr:disk-grpc-cache
Closed

Enable combined disk cache for grpc caching protocol.#10233
buchgr wants to merge 1 commit intobazelbuild:masterfrom
buchgr:disk-grpc-cache

Conversation

@buchgr
Copy link
Copy Markdown
Contributor

@buchgr buchgr commented Nov 14, 2019

This change enables the combined disk cache for the gRPC
protocol too.

$ bazel build src:bazel --disk_cache=/path/to/dir
--remote_cache=grpcs://...

It does not yet also enable it for remote execution as
this will need a bit more work. In particular it will
require some refactorings around RemoteCacheClient#findMissingBlobs
as when used with remote execution findMissingBlobs() should
only check the remote cache and not the local disk cache. Else,
it could happen that an input file is missing from the local
cache but not from the remote cache in which case Bazel would
attempt to upload the file again.

RELNOTES: The --disk_cache flag can now also be used together
with the gRPC remote cache.

This change enables the combined disk cache for the gRPC
protocol too.

$ bazel build src:bazel --disk_cache=/path/to/dir
--remote_cache=grpcs://...

It does not yet also enable it for remote execution as
this will need a bit more work. In particular it will
require some refactorings around RemoteCacheClient#findMissingBlobs
as when used with remote execution findMissingBlobs() should
only check the remote cache and not the local disk cache. Else,
it could happen that an input file is missing from the local
cache but not from the remote cache in which case Bazel would
attempt to upload the file again.

RELNOTES: The --disk_cache flag can now also be used together
with the gRPC remote cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants