Called, from key_exists, scan_sorted_subkeys re-creates the sorted subkeys record of the given key and then searches through it. The race is that between creation and parsing of the sorted subkey record, another process that stores some other subkey of the same parent key will delete the sorted subkey record, resulting in an WERR_BADFILE of an operation that should actually succeed. In a heavily contended situation this can lead to operations that pretend to have failed although they actually succeeded.
Created attachment 5583 [details] Fix for 3.5.2 This patch fixes the issue by wrapping the creation and parsing into a transaction.
Pushed to v3-5-test. Closing out bug report. Thanks!