Skip to content

Improve gRPC protocol handling, error reporting, and server config#2207

Open
rejuvenile wants to merge 3 commits intoTraceMachina:mainfrom
rejuvenile:pr/03-grpc-handling
Open

Improve gRPC protocol handling, error reporting, and server config#2207
rejuvenile wants to merge 3 commits intoTraceMachina:mainfrom
rejuvenile:pr/03-grpc-handling

Conversation

@rejuvenile
Copy link

@rejuvenile rejuvenile commented Mar 12, 2026

Summary

  • Improve gRPC error handling and status code mapping
  • Add configurable connections_per_endpoint (default 32)
  • Add batch_update_threshold_bytes and batch_coalesce_delay_ms settings
  • Better server configuration validation

Test plan

  • cargo check passes
  • CI checks pass

Stack: 3/11 — depends on #2206

🤖 Generated with Claude Code


This change is Reviewable

rejuvenile and others added 3 commits March 11, 2026 16:54
Update tonic, prost, and other dependencies to latest versions.
Regenerate protobuf bindings. Add aws-lc-rs and rayon support
to digest hasher. Update BUILD.bazel files for LRE toolchain.

Co-Authored-By: Claude <noreply@anthropic.com>
Rewrite existence cache to prevent stale positives by bypassing cache
on update and cleaning entries on NotFound. Fix BatchUpdateBlobs
duplicate digest handling. Add POSIX_FADV_SEQUENTIAL for read-ahead.
Pre-set CAS files to 0o555 to avoid redundant chmod on hardlink.
Fix LRU eviction ordering at startup by sorting files by atime.
Add stall detector for store operations. Replace async Mutex with
parking_lot in EvictingMap. Increase gRPC connections_per_endpoint
default to 32.

Co-Authored-By: Claude <noreply@anthropic.com>
Fix ByteStream protocol compliance for large blobs. Add gRPC error
details with proper status codes. Add max_total_batch_size config
for BatchReadBlobs/BatchUpdateBlobs. Improve capabilities server
to report actual supported features. Add TLS improvements and
server startup configuration options. Downgrade per-request
transfer logs to debug level.

Co-Authored-By: Claude <noreply@anthropic.com>
@CLAassistant
Copy link

CLAassistant commented Mar 12, 2026

CLA assistant check
All committers have signed the CLA.

@rejuvenile rejuvenile force-pushed the pr/03-grpc-handling branch from 4282900 to 94afcf2 Compare March 12, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants