Skip to content

impl: make it possible to load a selected snapshot - #464

Merged
umaucher merged 1 commit into
eclipse-score:mainfrom
qorix-group:karolnowak-make-it-possible-to-select-snapshot-id
Oct 8, 2026
Merged

umaucher merged 1 commit into
eclipse-score:mainfrom
qorix-group:karolnowak-make-it-possible-to-select-snapshot-id

Conversation

@karolnowak

@karolnowak karolnowak commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

fixes #237
fixes #215

Description

Changes to allow a client:

  • to load a selected snapshot by providing a snapshot id.
  • to start an empty KVS without loading.

Usage

KvsBuilder b(instance_id);
b.snapshot(snapshot_id);
b.build();

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Starting local Bazel server (8.7.0) and connecting to it...
INFO: Invocation ID: ec1ccacc-0edc-4a0d-93a0-c05235405b6a
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 2 packages loaded
Loading: 2 packages loaded
    currently loading: 
Loading: 2 packages loaded
    currently loading: 
Loading: 2 packages loaded
    currently loading: 
Loading: 2 packages loaded
    currently loading: 
Loading: 2 packages loaded
    currently loading: 
Loading: 2 packages loaded
    currently loading: 
Analyzing: target //:license-check (3 packages loaded, 0 targets configured)
Analyzing: target //:license-check (3 packages loaded, 0 targets configured)

Analyzing: target //:license-check (19 packages loaded, 14 targets configured)

Analyzing: target //:license-check (51 packages loaded, 14 targets configured)

Analyzing: target //:license-check (92 packages loaded, 14 targets configured)

Analyzing: target //:license-check (147 packages loaded, 978 targets configured)

Analyzing: target //:license-check (151 packages loaded, 3294 targets configured)

Analyzing: target //:license-check (151 packages loaded, 3294 targets configured)

Analyzing: target //:license-check (151 packages loaded, 3294 targets configured)

Analyzing: target //:license-check (164 packages loaded, 6906 targets configured)

Analyzing: target //:license-check (170 packages loaded, 9846 targets configured)

Analyzing: target //:license-check (170 packages loaded, 9846 targets configured)

Analyzing: target //:license-check (170 packages loaded, 9846 targets configured)

Analyzing: target //:license-check (174 packages loaded, 15827 targets configured)

Analyzing: target //:license-check (174 packages loaded, 15827 targets configured)

Analyzing: target //:license-check (174 packages loaded, 15827 targets configured)

Analyzing: target //:license-check (175 packages loaded, 15951 targets configured)

INFO: Analyzed target //:license-check (176 packages loaded, 16077 targets configured).
[13 / 16] Generating Dash formatted dependency file ...; 0s disk-cache, processwrapper-sandbox ... (2 actions, 1 running)
INFO: From Generating Dash formatted dependency file ...:
INFO: Successfully converted 50 packages from Cargo.lock to bazel-out/k8-fastbuild/bin/formatted.txt
INFO: Found 1 target...
Target //:license.check.license_check up-to-date:
  bazel-bin/license.check.license_check
  bazel-bin/license.check.license_check.jar
INFO: Elapsed time: 49.039s, Critical Path: 2.22s
INFO: 16 processes: 12 internal, 3 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 16 total actions
INFO: Running command line: bazel-bin/license.check.license_check ./formatted.txt <args omitted>
[main] INFO Querying Eclipse Foundation for license data for 42 items.
[main] INFO Found 32 items.
[main] INFO Querying ClearlyDefined for license data for 10 items.

@karolnowak
karolnowak force-pushed the karolnowak-make-it-possible-to-select-snapshot-id branch 2 times, most recently from 50cb5a6 to 28e8fa2 Compare October 5, 2026 11:27
@karolnowak
karolnowak deployed to workflow-approval October 5, 2026 11:27 — with GitHub Actions Active
@karolnowak
karolnowak deployed to workflow-approval October 5, 2026 11:27 — with GitHub Actions Active
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

The created documentation from the pull request is available at: docu-html

Comment thread score/kvs/kvsbuilder.hpp
Comment thread score/kvs/kvsbuilder.cpp Outdated
Comment thread score/kvs/kvsbuilder.cpp Outdated
Comment thread score/kvs/kvsbuilder.hpp Outdated
Comment thread score/kvs/kvsbuilder.hpp Outdated
Comment thread score/kvs/kvs.hpp Outdated
Comment thread score/kvs/tests/test_scenarios/cpp/src/helpers/kvs_parameters.cpp Outdated
@Ahmed-Elsaka-JC

Copy link
Copy Markdown
Contributor

please link your PR to issue : #237

  • please also provide tests to cover provided issue .

@karolnowak
karolnowak force-pushed the karolnowak-make-it-possible-to-select-snapshot-id branch from 6178afc to 4c46822 Compare October 6, 2026 12:39
@karolnowak
karolnowak deployed to workflow-approval October 6, 2026 12:39 — with GitHub Actions Active
@karolnowak
karolnowak deployed to workflow-approval October 6, 2026 12:39 — with GitHub Actions Active
Comment thread score/kvs/tests/test_scenarios/cpp/src/helpers/kvs_parameters.cpp Outdated
Comment thread score/kvs/kvs_test.cpp
@PandaeDo
PandaeDo deployed to workflow-approval October 7, 2026 05:55 — with GitHub Actions Active
@PandaeDo
PandaeDo deployed to workflow-approval October 7, 2026 05:55 — with GitHub Actions Active
@karolnowak karolnowak closed this Oct 7, 2026
@karolnowak karolnowak reopened this Oct 7, 2026
@karolnowak
karolnowak deployed to workflow-approval October 7, 2026 11:32 — with GitHub Actions Active
@karolnowak
karolnowak deployed to workflow-approval October 7, 2026 11:32 — with GitHub Actions Active
@karolnowak

Copy link
Copy Markdown
Contributor Author

Please provide similar changes to Rust impl.

not sure if we can expect this by every contributor if @karolnowak agrees to do so fine but not everyone would feel comfortable to do both and we might need to compensate this in the feature team? If not we should make an according task to fix it "later" ... also not sure if in general should try to do always everything in 1 PR this also just makes them hard to review.

Even though I've never programmed in Rust before, it should NOT be a problem for me to make such changes in the rust version of kvs. However, I believe it is simpler to maintain two separate PRs than one large PR.
Nevertheless, it is your call whether rust changes should be here as well or in a separate PR.

Moreover, I saw that there are already discrepancies between these two implementations.
By any chance, is there an arch diagram (or sth) describing classes/API so that two implementations could conform to it, avoiding misalignment?

@karolnowak
karolnowak force-pushed the karolnowak-make-it-possible-to-select-snapshot-id branch from e57a72d to 3f572d6 Compare October 8, 2026 09:04
@karolnowak
karolnowak deployed to workflow-approval October 8, 2026 09:04 — with GitHub Actions Active
@karolnowak
karolnowak deployed to workflow-approval October 8, 2026 09:04 — with GitHub Actions Active

@arkjedrz arkjedrz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments remain the same.
BTW add fixes #215

@karolnowak
karolnowak force-pushed the karolnowak-make-it-possible-to-select-snapshot-id branch from 3f572d6 to 5f9a0a3 Compare October 8, 2026 13:22
@karolnowak
karolnowak force-pushed the karolnowak-make-it-possible-to-select-snapshot-id branch from 5f9a0a3 to 1369f90 Compare October 8, 2026 13:28
@karolnowak
karolnowak force-pushed the karolnowak-make-it-possible-to-select-snapshot-id branch from 1369f90 to f2c18f0 Compare October 8, 2026 13:30
Comment thread score/kvs/kvsbuilder.hpp Outdated
Changes to allow a client to load a selected snapshot by providing a snapshot id.

Signed-off-by: Karol Nowak <Karol.Novak.Ext@qorix.ai>
@karolnowak
karolnowak force-pushed the karolnowak-make-it-possible-to-select-snapshot-id branch from f2c18f0 to b26b98e Compare October 8, 2026 13:56
@karolnowak
karolnowak deployed to workflow-approval October 8, 2026 13:56 — with GitHub Actions Active
@karolnowak
karolnowak deployed to workflow-approval October 8, 2026 13:56 — with GitHub Actions Active
@karolnowak karolnowak self-assigned this Oct 8, 2026
@karolnowak karolnowak added the cpp Pull request that updates the cpp implementation or related parts label Oct 8, 2026
@umaucher
umaucher added this pull request to the merge queue Oct 8, 2026
Merged via the queue into eclipse-score:main with commit a9bc108 Oct 8, 2026
30 of 32 checks passed

This branch was successfully deployed

1 active deployment
workflow-approval — b26b98ef Deployed Oct 8, 2026 by karolnowak via qnx-build (per-arm64-qnx) / approval #688
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cpp Pull request that updates the cpp implementation or related parts

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Improvement: Make it possible to initialize KVS when snapshot with ID=0 is not available Improvement: match three-state loading option

5 participants