codenotary / codenotary/immudb4net

Unable to reconnect to db after incorrect UPSERT

Open
#40 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
8
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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:

```c#
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](https://github.com/codenotary/immudb4net/assets/11409484/19b5aba9-146b-41b0-b7fe-83392a02096b)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the incorrect UPSERT in the .NET 5 console project, then restart the application and compare SDK reconnection behavior with immuclient against the same immudb database. Investigate the VerificationException and dual proof verification failure; done means an invalid UPSERT no longer prevents the SDK from reconnecting after restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.