`UpdateApp` masks `compute_size` unconditionally while `omitempty` drops it from the body
Maintainer thường phản hồi trong vòng 1 ngày
@andrewnester đang làm issue này rồi.
Từ ngày 28/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
CLI version: v1.14.0 (also present on v1.13.0)
Engine: direct
Summary
The CLI sends a fixed update_mask on every UpdateApp call, independent of what the bundle declares or what actually changed. compute_size is always in it. But the SDK field is compute_size,omitempty, so when the bundle does not declare a compute size the field is absent from the request body — the request asks the backend to update a field it does not supply.
Evidence
Both halves are captured requests, not inference. Taken with --debug and DATABRICKS_DEBUG_TRUNCATE_BYTES=20000 (the default truncation hides the tail where update_mask lives).
With compute_size: MEDIUM declared — value present, mask lists it:
{
"app": {
"compute_size": "MEDIUM",
"description": "...",
"name": "<app>",
"resources": [ ... ],
"source_code_path": ""
},
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,forward_user_access_token,compute_size,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
}
With the declaration removed — same bundle, same target, only that line deleted. The body now has no compute_size key at all, and the mask is byte-identical, still naming it:
{
"app": {
"description": "...",
"name": "<app>",
"resources": [ ... ],
"source_code_path": ""
},
"update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,forward_user_access_token,compute_size,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
}
So the mask is a fixed list rather than being derived from what the request actually carries.
The direct engine's own embedded resources.generated.yml already classifies the field as a backend default:
apps:
backend_defaults:
# Backend sets it "MEDIUM" when not specified in the config
- field: compute_size
So the CLI knows compute_size is a backend default for diffing, and still masks it for update. compute_min_instances and compute_max_instances are in the mask on the same terms and are worth checking alongside it.
Why plan cannot show this
bundle plan correctly reports compute_size as {"action":"skip","reason":"backend_default"}. The differ is not what is inconsistent — the update payload is, and plan never renders a payload. Any bug of this shape is invisible to the documented pre-deploy gate.
Suggested fix
Build the update_mask from the fields actually present in the serialised body, or drop backend_defaults fields from the mask when the config does not declare them — the same treatment PR #5042 gave deploy-only fields.
What we are NOT claiming
We have not observed the backend mishandling the masked-but-absent field. The undeclared payload above was captured on v1.14.0, where the request is rejected with a 400 on an unrelated field (source_code_path, reported separately) before the backend acts on the mask — so what this service does with "update compute_size" plus no value is untested here.
Nor is this the explanation for the Unexpectedly failed to update app's compute size errors, which is where the tempting story leads. Three consecutive deploys on 2026-08-27 with compute_size declared and present in the body produced a Lakebase grant timeout (deadline exceeded after 998000000ns), then that compute-size message, then a clean success — same config, minutes apart. That reads as a flaky async update path, not as this payload bug, and an earlier internal write-up that claimed otherwise was withdrawn on this evidence.
This report is about payload correctness only: the mask names a field the request does not carry.
- Ngôn ngữ chính
- Go
- Star
- 405
- Fork
- 250
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 236
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của databricks/cli
-
Apps commands only accept relative path to app.ymlCó thể đã có người làm @yuri-rod đã nhận 9 ngày trước. Đang mởCLI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
databricks/cli#6910 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
databricks/cli#6670 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
databricks/cli#7032 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs engine/direct Enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
databricks/cli#7013 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
databricks/cli#7002 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của databricks/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
praetorian-inc/augustus#334 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
TestTOMLBigFileParsesInLinearTime: a 1s wall-clock bound on a 3 MB parse fails under load (1.27s)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
peasant-labs/village#293 ·
Maintainer thường phản hồi trong vòng 1 ngày