Skip to content

Fix Arrow chunk download telemetry error bucketing - #1649

Open
prathamesh-db wants to merge 1 commit into
databricks:mainfrom
prathamesh-db:codex/fix-arrow-chunk-error-bucketing
Open

Fix Arrow chunk download telemetry error bucketing#1649
prathamesh-db wants to merge 1 commit into
databricks:mainfrom
prathamesh-db:codex/fix-arrow-chunk-error-bucketing

Conversation

@prathamesh-db

Copy link
Copy Markdown
Contributor

Description

An internal telemetry investigation found Arrow chunk download failures being emitted as DOWNLOAD_FAILED, which is an internal lifecycle state rather than a stable driver error code.

This change emits the existing CHUNK_DOWNLOAD_ERROR code for genuine download failures and preserves processing failures instead of relabeling them as download failures. It improves telemetry bucketing; it does not change download or retry behavior.

Testing

ArrowResultChunkStatusTest passes all 3 cases, covering the successful flow, a body-read failure emitting CHUNK_DOWNLOAD_ERROR, and malformed Arrow data remaining PROCESSING_FAILED. The repository-wide Spotless check also passes.

Telemetry Errors

  • Not applicable — this PR does not add or change a telemetry-visible error.
  • Applicable — the error uses DatabricksDriverErrorCode where appropriate, and any
    new code is uniquely numbered and tested.
  • Applicable — maintainer help is requested to confirm that the existing
    CHUNK_DOWNLOAD_ERROR classification remains driver-owned.

Additional Notes to the Reviewer

This intentionally reuses CHUNK_DOWNLOAD_ERROR; no new error enum is needed.

Signed-off-by: Prathamesh Baviskar <prathamesh.baviskar@databricks.com>
@prathamesh-db
prathamesh-db marked this pull request as ready for review August 21, 2026 05:20
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.

1 participant