foundationdb icon indicating copy to clipboard operation
foundationdb copied to clipboard

Mutating a directory multiple times simultaneously in the same transaction is unsafe

Open jared2501 opened this issue 6 years ago • 12 comments

The Java implementation of DirectoryLayer does not seem to work when used with an FDBTransaction, but does when used with an FDBDatabase.

I'm seeing issues where the DirectoryLayer allocates a prefix and returns it to me. I commit the transaction successfully, but future calls to the DirectoryLayer from new transactions do not find the allocated directory.

If I use a FDBDatabase when invoking DirectoryLayer.createOrOpen(...) then all works fine.

Since FDBTransaction implements TransactionContext I would have expected it to work with DirectoryLayer. Is this a correct assumption? I know this issue is not the most helpful, but I'm not quite sure where to start on getting useful information.

jared2501 avatar Nov 04 '18 18:11 jared2501