You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- b/bindings/go/src/fdb/database.go+++ a/bindings/go/src/fdb/database.go@@ -235,8 +235,9 @@ func (d Database) ReadTransact(f func(ReadTransaction) (interface{}, error)) (in
ret, e = f(tr)
- // read-only transactions are not committed and will be destroyed automatically via GC,- // once all the futures go out of scope+ if e == nil {+ e = tr.Commit().Get()+ }
return
}
Instead we have no errors in both cases; this is an issue specific to the multi-version code, and I guess that the first commit waits for some state in the C/C++ binding to be initialized.
Could it be something related to the GRV cache?
Possible solution
Ideally when initializing network options the Go binding should wait for that initialization to complete, so that this initial 1039 error is avoided.
The text was updated successfully, but these errors were encountered:
Reference<IDatabase> newDb;
try {
newDb = connectionRecord.createDatabase(client->api);
} catch (Error& e) {
// Create error currently does not return any error except for network not initialized,// which cannot happen at this pointASSERT(false);
}
The client is basically stuck in the initializing state in such case.
Description of the problem
With current
main
, running this testcase with multi-version client disabled leads to:With multi-version client enabled:
Reverting the change introduced in #11366:
Instead we have no errors in both cases; this is an issue specific to the multi-version code, and I guess that the first commit waits for some state in the C/C++ binding to be initialized.
Could it be something related to the GRV cache?
Possible solution
Ideally when initializing network options the Go binding should wait for that initialization to complete, so that this initial 1039 error is avoided.
The text was updated successfully, but these errors were encountered: