comp_req__kvs__value_get_api says get value returns the default value, but the team agreed it does not

Đang mở Phù hợp với người mới
#485 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ó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
86/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, rust
Lĩnh vực
documentation

Hướng nghiên cứu

Yêu cầu có tên comp_req__kvs__value_get_api; issue không xác định tệp chứa yêu cầu. Bắt đầu bằng cách tìm yêu cầu đó trong repository và đọc nội dung hiện tại cùng với hành vi được mô tả cho Kvs::GetValue và Rust get_value. Cập nhật yêu cầu để khớp với thỏa thuận đã nêu của nhóm, sau đó xác nhận rằng yêu cầu không còn nói get value trả về giá trị mặc định khi một khóa chưa được ghi.

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

Mô tả

Description

The requirement comp_req__kvs__value_get_api says:
if a key was never written, get value returns its default value.

The team agreed on something else: get value returns an error, and the user reads the default value with get default value.
Both implementations work the way the team agreed. Please change the requirement text.

comp_req__kvs__value_get_api: The component shall provide a capability to retrieve the in-memory value associated with a key, returning the default value (see comp_req__kvs__value_default) when the key has not been explicitly written.

How it works today

If a key was never written, get value returns the error KeyNotFound.
This is also true when the key has a default value.
To get the default value, the user calls get default value.
C++ (Kvs::GetValue in score/kvs/kvs.cpp) and Rust (get_value in score/kvs/rust_kvs/kvs.rs) both work like this.

History

#417 (2026-09-18): removed the default value from get value in C++ and Rust
#383 (2026-10-02): in a review, Piotr asked if get value should return the default value. umaucher answered that the team agreed in the FT meeting that it should not: "the 'normal' get is not defining any error handling and the 'user' needs to decide ... so e.g. requesting the default instead".
#541 (2026-10-23): added the current requirement text. It brings the default value back, so it does not match #417 or the agreement.

Acceptance Criteria

Requirtement text should match the team agreement

Ngôn ngữ chính
Python
Star
6
Fork
49
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
63

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay 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 eclipse-score/reference_integration

Tất cả issue của eclipse-score/reference_integration

Issue tương tự

Thêm issue về Python

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.