Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

The external registry folder watcher logs an ERROR with a NoSuchFileException stack trace for every temp file an editor's atomic save writes into the folder

Đang mở Phù hợp với người mới
#8,232 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, java
Lĩnh vực
backend, devops

Hướng nghiên cứu

Đọc components/core/core-registry và kiểm tra RecursiveFolderWatcher.syncFile, đặc biệt là phần xử lý ngoại lệ khi sao chép tệp. Tái hiện sự cố bằng cách chỉnh sửa một tệp trong thư mục registry bên ngoài với thao tác lưu nguyên tử, rồi quan sát log. Hoàn tất khi tệp tạm bị xóa trước lúc sao chép không còn tạo ra stack trace ERROR, trong khi tệp thực sự được chỉnh sửa vẫn được đồng bộ.

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

Mô tả

  • Image: dirigiblelabs/dirigible:15.1.0-java (sha256:dac354be94f21f222e88b81fd7fc6e68d9616ee7b4e12bcb1e9eef0465bd213f)
  • Reference: dirigiblelabs/dirigible:15.1.0 (sha256:449b8c948738a2bd7a4294a7bec1000a08bc1da1cd20f312f0e54383a7af325d)

Same behaviour on both images.

Steps
mkdir -p /tmp/ext && cp -r <sample-intent-money> /tmp/ext/
docker run -d -p 8080:8080 -v /tmp/ext:/ext -e DIRIGIBLE_REGISTRY_EXTERNAL_FOLDER=/ext dirigiblelabs/dirigible:15.1.0-java
# once ready, edit a file the way most editors save (temp file + rename):
sed -i 's/.multiply(line.VatRate)/.multiply(line.VatRate).multiply(java.math.BigDecimal.TEN)/' /tmp/ext/sample-intent-money/custom/LineVatAction.java
docker logs <container>
Observed

The edit is picked up: it is recompiled and the new value is served in about 12 s. But every such save logs two ERRORs with full stack traces for the editor's temp file:

[ERROR] o.e.d.c.r.w.RecursiveFolderWatcher - Failed to sync: /ext/sample-intent-money/custom/sedeL8Fzd
java.nio.file.NoSuchFileException: /ext/sample-intent-money/custom/sedeL8Fzd
	at org.eclipse.dirigible.components.registry.watcher.RecursiveFolderWatcher.syncFile(RecursiveFolderWatcher.java:204)

(twice), then INFO Synced: .../LineVatAction.java. The default image logs the same pair.

Expected

A create/modify event for a file that is gone by the time it is copied is a benign race (sed -i, vim, most IDEs, git checkout). It should be skipped, or logged at DEBUG, not ERROR. The external registry folder is the deployment path the README names for applications (section "Java edition"), so these ERRORs reach log alerting on every edit.

Where

components/core/core-registry RecursiveFolderWatcher.syncFile: catch NoSuchFileException separately (or check Files.exists) before the generic IOException ERROR.

Ngôn ngữ chính
Java
Star
278
Fork
97
Merge trung bình
16 giờ 39 phút
Pull request đã merge (30 ngày)
282

Chuẩn bị môi trường

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 eclipse-dirigible/dirigible

Tất cả issue của eclipse-dirigible/dirigible

Issue tương tự

Thêm issue về Java

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.