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

No migration record and compareExchangeLock not deleted #69

Open
FranColba opened this issue Aug 5, 2024 · 0 comments
Open

No migration record and compareExchangeLock not deleted #69

FranColba opened this issue Aug 5, 2024 · 0 comments

Comments

@FranColba
Copy link

FranColba commented Aug 5, 2024

Hi, I'm currently using RavenMigrations 6.0.1 in my project.

I had a problem with few migrations that took more than 20 minutes each one. Those 4 migrations were modifying 150k documents each, changing the ID of each that was a GUID with CollectionName/GUID. In order to be able to do that, we needed to delete the old GUID document and insert the new CollectionName/GUID one.

The issue itself is that the migrations are correctly run in the RavenDB server but the migration record is not created and the compareExchangeLock is not removed. Also there no exception thrown in backend side

The migrations are using the PatchCollection inside the Up() giving only the RQL string for
protected Operation PatchCollection(string rql, bool waitForCompletion = true, TimeSpan? staleTimeout = null)

Am I using it incorrectly? Someone else faced this issue and was able to solve it? Our workaround is to check with queries that the migration has been correctly applied and manually delete the compareExchangeLock and add the migration record also manually

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

No branches or pull requests

1 participant