Skip to content

JPA Bug: Metadata not deleting when state updated to DELETED #819

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

Closed
dmvolod opened this issue Sep 10, 2020 · 0 comments · Fixed by #822
Closed

JPA Bug: Metadata not deleting when state updated to DELETED #819

dmvolod opened this issue Sep 10, 2020 · 0 comments · Fixed by #822

Comments

@dmvolod
Copy link
Contributor

dmvolod commented Sep 10, 2020

The META record not deleting/updating when STATE is updated to ArtifactState.DELETED via service.updateArtifactState(artifactId, toUpdateState(ArtifactState.DELETED));
In this case, the classic max(version) query implemented in #780 doesn't work
We need to define, that META should be also deleted together with ARTIFACTS table or META can have orphan records and in this case query should be rewritten
@EricWittmann , @alesj wdyt about it? Is this the same behavior for Infinispan/InMemory/Kafka storage?

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 a pull request may close this issue.

1 participant