Doxense / foundationdb-dotnet-client

C#/.NET Binding for FoundationDB Client API
Other
142 stars 31 forks source link

FdbTop/FdbShell is not compatible with latest FDB client (version 630) #108

Open Rjerk opened 2 years ago

Rjerk commented 2 years ago
➜  foundationdb-dotnet-client git:(aa3d663d) ✗ ./build/FdbShell
Connecting to cluster...
REMOVED FDB API FUNCTION
[1]    504729 abort (core dumped)  ./build/FdbShell
➜  foundationdb-dotnet-client git:(aa3d663d) ✗ ./build/FdbTop
REMOVED FDB API FUNCTION
[1]    504752 abort (core dumped)  ./build/FdbTop
KrzysFR commented 2 years ago

Sorry for the delay.

I think you are using one of the releases (5.2?) which was build before the changes in the 6.X API were the connect API was removed. This was fixed in 35837dbaac56733d32854650a9ee5595096ac41b (a while ago ^^;)

We always built from source, and the master branch works fine with the 6.2 and 6.3 releases.

I'll try to spin out a new release of both the nuget package and tools, but in the mean time, you could try checking out the master branch, and rebuilding it?

Be aware that the API has changed a lot since mid-2019, especially regarding the directory layer and caching of subspaces (in an attempt to fix a major issue that the previous versions had). This means that the "documentation" is now completely out of date. I'll try to fix it at some point, but in the mean time, you can use one of the samples, or the unit tests as a reference? Look for usage of the FdbPath which is used to represent a "path" in the directory layer, and is used as the key to the directory layer to obtain an actual subspace instance from the cache.

KrzysFR commented 2 years ago

I have published updated nuget packages, and in the 7.0.0-preview1 release you can find binaries for windows and .NET 5.0+