foundationdb
foundationdb copied to clipboard
Mutating a directory multiple times simultaneously in the same transaction is unsafe
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.