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

Unable to reconnect to db after incorrect UPSERT #40

Open
Aduciicba opened this issue Jul 27, 2023 · 1 comment
Open

Unable to reconnect to db after incorrect UPSERT #40

Aduciicba opened this issue Jul 27, 2023 · 1 comment

Comments

@Aduciicba
Copy link

After incorrect upsert operation (incorrect syntax, no value for PK in query) SDK seems to be unable to establish the connection with immu db after application restart. It fails with exception:

ImmuDB.Exceptions.VerificationException: 'Data is corrupted (dual proof verification failed for the local state).'

Immuclient shows no error and has no troubles to connect to that db and successfully operate with its data though.

Environment:
Windows 10, Visual Studio 2019
Console Project on .NET 5
ImmuDB4Net 1.0.5
ImmuDB Server, Client and Admin 1.5.0
image

@Aduciicba
Copy link
Author

The same after correct operation. Inserted two rows, restart the app and got VerificationException on Open.
At the same time I'm able to reconnect and select those inserted rows with immuclient.
Am I doing something wrong with closing session/conection?

That's what I'm calling before closing the app:

await client.Close();
await ImmuClient.ReleaseSdkResources();

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