Skip to content

Fix Discovery persistence and lookup handling#543

Merged
s-heppner merged 3 commits into
eclipse-basyx:developfrom
rwth-iat:fix_discovery
May 13, 2026
Merged

Fix Discovery persistence and lookup handling#543
s-heppner merged 3 commits into
eclipse-basyx:developfrom
rwth-iat:fix_discovery

Conversation

@Ornella33
Copy link
Copy Markdown
Contributor

Before, the Discovery service tried to persist its in-memory data structure directly. This could corrupt the storage file discovery_store.json and prevented reliable lookup after restart.

This change persists only the AAS-to-asset-ID mapping in a JSON-safe format, rebuilds the reverse lookup index on load, creates the storage file when persistent mode is enabled, and fixes lookup responses to pass paging metadata correctly.

Before, the Discovery service tried to persist its in-memory data structure
directly. This could corrupt the storage file discovery_store.json and prevented reliable lookup after restart.

This change persists only the AAS-to-asset-ID mapping in a JSON-safe format,
rebuilds the reverse lookup index on load, creates the storage file when
persistent mode is enabled, and fixes lookup responses to pass paging metadata
correctly.
Comment thread server/app/interfaces/discovery.py Outdated
Comment thread server/app/services/run_discovery.py Outdated
Comment thread server/app/services/run_discovery.py Outdated
@s-heppner s-heppner merged commit 8a9b39a into eclipse-basyx:develop May 13, 2026
13 checks passed
@s-heppner s-heppner deleted the fix_discovery branch May 13, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants