Hi @markus.pilman@ajbeamon , I recently upgrade to 6.2.10, and have started to use setClientBuggifyEnable() option for testing.
In addition to retry-able errors being thrown by fdb client, sometimes an internal_error (4100) is thrown; is this expected? I believe that layer code will be unable to handle this class of errors, other than failing the transaction.
Was this error intentionally thrown from buggify() code? If so, is there any guidance on how should one deal with this error in the layer code (other than bailing out on the transaction)?
I am seeing following error line when this error is being thrown:
Thanks Andrew! Wanted to check if the fix will be ported to 6.2? As it is, this is causing crashes in tests that rely on buggify.
Btw, I am running OSX 10.14.6 . I hope that is not causing this issue.
Reason for suspecting this: Trying to build foundationdb 6.2 branch locally, results in build error:
foundationdb/flow/Deque.h:170:19: error: 'aligned_alloc' is only available on macOS 10.15 or newer [-Werror,-Wunguarded-availability-new]
T* newArr = (T*)aligned_alloc(std::max(__alignof(T), sizeof(void*)),
This looks like a pretty straightforward problem, and we can release the fix on 6.2.
You can resolve the aligned_alloc issue if you define HAS_ALIGNED_ALLOC when building. This is a configuration parameter you can set when doing the cmake build.
If you build with cmake there’s no need to set this manually. CMake will automatically set this variable to the right value (it will check on config time whether this symbols exists). Therefore cmake-builds should just work.
It is not very important to me at the moment, so please do not spend much time on it - I have tried the default cmake based build process, and verified that it detects -- Has aligned_alloc: false, but I still see the build error that I posted earlier.
Something seems to be wrong here. From your cmake output:
Has aligned_alloc: false
But on Catalina this should be true. I am not quite sure what to do here… I build on Catalina quite often and it works without any issues? Can you please make sure that your Xcode is up to date and if it still doesn’t work can you create a github issue? I don’t think the forum is the best place to track this.