Skip to content

Apply created-not-after when filling the local CCDB snapshot cache - #16213

Open
sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/ccdb-snapshot-not-after
Open

sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/ccdb-snapshot-not-after

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

This fixes a problem in CcdbApi where the created-not-after limit was ignored for objects fetched into the local snapshot cache, and adds a unit test.

  • With ALICEO2_CCDB_LOCALCACHE set, retrieveFromTFile downloaded a missing object into the cache without passing createdNotAfter and createdNotBefore.
  • The cache then held the newest version, which was served for the rest of the job.
  • The two limits are now passed to retrieveBlob.

The new test uploads two versions of an object to ccdb-test.cern.ch and is skipped where that server is unreachable. Without the fix it gets the newer version through the cache; with the fix it gets the older one.

Assisted by Claude Code.

This fixes a problem in CcdbApi where the created-not-after limit was ignored for objects fetched into the local snapshot cache, and adds a unit test.

- With ALICEO2_CCDB_LOCALCACHE set, retrieveFromTFile downloaded a missing object into the cache without passing createdNotAfter and createdNotBefore.
- The cache then held the newest version, which was served for the rest of the job.
- The two limits are now passed to retrieveBlob.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sawenzel
sawenzel requested review from a team, Barthelemy and costing as code owners November 26, 2026 16:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant