RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0
維護者通常 1 天內回覆
評估
研究方向
Start at the bundle deployment file upload path for databricks bundle deploy and inspect how it handles the workspace-files import request when overwrite=true. Reproduce with CLI 1.21.0 against an existing file and compare the request behavior with the working 1.16.1 version. Done means deployment updates the existing file without RESOURCE_ALREADY_EXISTS; linked pull request #7218 shows work is already underway.
由索引模型根據 Issue 內容生成。
描述
Describe the issue
When doing usual bundle deployment using cli, with version 1.21.0 an error is shown:
Uploading bundle files to /Users/userid/bundles/sem...
Error: Request failed for POST /Users/userid/bundles/sem/src/uk/LIVE/usecase/batching/every1h/file.sql: RESOURCE_ALREADY_EXISTS: Node named 'file.sql' already exists (400 )
Endpoint: POST https://adb-XXXXXXX.azuredatabricks.net/api/2.0/workspace-files/import-file/Users%2Fuserid%2Fbundles%2Fsem%2Fsrc%2Fuk%2FLIVE%2Fusecase%2Fbatching%2Fevery1h%2Ffile.sql?overwrite=true
HTTP Status: 400 Bad Request
API error_code:
API message: Request failed for POST /Users/userid/bundles/sem/src/uk/LIVE/usecase/batching/every1h/file.sql: RESOURCE_ALREADY_EXISTS: Node named 'file.sql' already exists
Steps to reproduce the behavior
- Run
databricks bundle deploy -p myprofile -t mytarget - See error: RESOURCE_ALREADY_EXISTS: Node named 'file.sql' already exists
Expected Behavior
Deployment successful, with resources updated:
When doing the same deploy, but using 1.16.1 version:
Uploading bundle files to /Users/userid/bundles/sem...
Updated jobs.prelive_sem.permissions
Updated jobs.sem_live_every1d.permissions
Updated jobs.sem_live_every1h.permissions
Updated jobs.sem_live_every2h.permissions
Updated jobs.sem_live_every30d.permissions
Updated jobs.sem_live_every3h.permissions
Updated jobs.sem_live_every7d.permissions
Files: 9 uploaded, 0 deleted
Resources: 0 created, 7 changed, 0 deleted, 7 unchanged
Actual Behavior
Databricks cli 1.21 seems has issue with overwrite=true flag set and doesn't update existing resources.
OS and CLI version
1.21.0 (docker container)
Linux and Windows
Is this a regression?
It works with previous container version (1.10.0)
Debug Logs
Output logs if you run the command with debug logs enabled. Example: databricks clusters list --log-level=debug. Redact if needed
- 主要語言
- Go
- 星號
- 416
- 分支
- 256
- 平均合併
- 1 天 22 小時
- 30 天內合併 PR
- 206
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
databricks/cli 的其他 Issue
-
Apps commands only accept relative path to app.yml可能已有人在做 @yuri-rod 於 25 天前認領。 未關閉CLI
難度 2/5 1-3 小時 新手友好度 82/100
databricks/cli#6910 ·
維護者通常 1 天內回覆
-
DABs
難度 2/5 1-3 小時 新手友好度 68/100
databricks/cli#6670 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 55/100
databricks/cli#7256 ·
維護者通常 1 天內回覆
-
bundle validate does not catch missing trigger.table_update.condition with multiple tables可能已有人在做 @yuri-rod 於 11 天前認領。 未關閉DABs Enhancement
難度 3/5 1-2 天 新手友好度 72/100
databricks/cli#7101 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
databricks/cli#7100 ·
維護者通常 1 天內回覆
相似的 Issue
-
area:recipes event:contribfest format:human-first source:agent status:needs-triage type:recipe
難度 2/5 1-3 小時 新手友好度 85/100
cadence-workflow/cadence-ai-samples#140 ·
維護者通常 1 天內回覆
-
ux
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
project-setup
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
bug report
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
type:bug
難度 2/5 1-3 小時 新手友好度 66/100
nightgauge/nightgauge#2732 ·
維護者通常 1 天內回覆