foundationdb-dotnet-client icon indicating copy to clipboard operation
foundationdb-dotnet-client copied to clipboard

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

Open Rjerk opened this issue 2 years ago • 2 comments

➜  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

Rjerk avatar Oct 21 '21 10:10 Rjerk

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 changes 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 avatar Nov 03 '21 09:11 KrzysFR

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

  • https://www.nuget.org/packages/FoundationDB.Client/7.0.0-preview1
  • https://github.com/Doxense/foundationdb-dotnet-client/releases/tag/7.0.0-preview1

KrzysFR avatar Nov 03 '21 11:11 KrzysFR