RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0

Đã đóng
#7,216 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Sankalp-Mittal đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #7218 của @Sankalp-Mittal — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

CLI
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
  1. Run databricks bundle deploy -p myprofile -t mytarget
  2. 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

Ngôn ngữ chính
Go
Star
416
Fork
256
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
206

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của databricks/cli

Tất cả issue của databricks/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.