Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Artifacts] Fix artifact name missing in metadata during migration [1.6.x] #5747

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

TomerShor
Copy link
Member

@TomerShor TomerShor commented Jun 10, 2024

The key of the artifact is used for creating its uid, which is a hash on the artifact dictionary, but must contain key, iteration and producer_id as they determine the artifact's uniqueness.

We saw a bug where a legacy artifact had no key in the artifact dictionary, only a db_key.
While migrating all artifacts to the new artifacts_v2 table, an exception was raised about key not being populated in the artifacts dictionary.

To overcome this, we populate the key with the artifact's db_key. This shouldn't cause issues because when reading artifacts from the DB you need to provide the db_key and not the key.

Resolves https://iguazio.atlassian.net/browse/IG-22883

@TomerShor TomerShor merged commit bc0387a into mlrun:1.6.x Jun 10, 2024
11 checks passed
TomerShor added a commit to TomerShor/mlrun that referenced this pull request Jun 10, 2024
@TomerShor TomerShor deleted the bugfix/IG-22883-legacy-artifacts-key branch June 10, 2024 19:33
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.

None yet

2 participants