1
0
mirror of https://github.com/apple/foundationdb.git synced 2025-06-02 19:25:52 +08:00

1588 Commits

Author SHA1 Message Date
Vaidas Gasiunas
e4311ae661 SysTester: remove direct dependencies on flow 2022-02-23 16:38:35 +01:00
Vaidas Gasiunas
f5d722b65b SysTester: use boost io_context for scheduling 2022-02-23 15:43:01 +01:00
Vaidas Gasiunas
e50c4320f0 SysTester: Adding options for testing with external library & multithreaded client 2022-02-22 17:25:57 +01:00
Vaidas Gasiunas
45d0815218 SysTester: Load balance over multiple databases 2022-02-21 18:54:51 +01:00
Vaidas Gasiunas
11527a18d3 SysTester: Execution framework 2022-02-21 18:01:10 +01:00
vikasgupta8
7c71821666 Updated cmake process string to match with ppc64le or powerpc64le 2022-02-18 12:53:23 +00:00
Vaidas Gasiunas
7fc8844ca4 C API Tests: new test executable 2022-02-18 12:08:10 +01:00
vikasgupta8
7bd767f198 Updated cmake process string to match with ppc64le or powerpc64le 2022-02-18 09:35:45 +00:00
Sam Gwydir
25ffcf9f7d documntation 2022-02-11 13:44:37 -08:00
vikasgupta8
edfff755bf added support for ppc64le 2022-02-11 06:17:15 +00:00
Sam Gwydir
8bff389fe3 add overwrite op 2022-02-10 15:17:13 -08:00
Sam Gwydir
cf19452277 typo 2022-02-10 15:17:07 -08:00
Andrew Noyes
863449c983
Allow access to transaction options through a go ReadTransaction interface ()
* Run go unit tests in ctest

* Remove unnecessary cgo directives

* go: Allow access to TransactionOptions from ReadTransaction

Closes 

* Try go get instead of go install

My understanding is that this should download dependencies (e.g. xerrors)

* Add -d flag to match go command for building libraries

* Avoid concurrent calls to `go get`
2022-02-09 14:41:21 -08:00
Markus Pilman
4414df1914
Merge pull request from sfc-gh-rjenkins/threadname-issue-6064
Make better use of thread names.
2022-02-04 08:46:23 -07:00
Johannes M. Scheuermann
9985e0d350 Fix go style issues 2022-02-03 20:48:19 -08:00
Andrew Noyes
02fcb1a239
Deprecate transaction_include_port_in_address ()
* Deprecate transaction_include_port_in_address

Update the description to start with Deprecated, so that it will be
deprecated in the generated java files.

* Update generated.go
2022-02-03 14:36:01 -08:00
Ray Jenkins
dd45805312
Merge branch 'apple:main' into threadname-issue-6064 2022-02-01 17:40:07 -06:00
Andrew Noyes
96cbfe668c
Fix flaky ctest tests ()
* Use localhost cluster for trace_partial_file_suffix_test

This way we get a predictable 127.0.0.1 in the trace file name

* Skip suspend test of pidof is not available

* Avoid writing to closed trace log

calling fdb_network_stop sends a "close" message to the trace thread,
but the network thread might can still be running and sending "flush"
messages to the network thread. This change basically ignores any
flushes that come after a close.

* Ensure unique ports for multi-process tests
2022-01-28 13:16:44 -08:00
Ray Jenkins
783cbb0aea Merge branch 'main' into threadname-issue-6064 2022-01-27 09:57:11 -06:00
Chaoguang Lin
3dad130e72 Disable setclass test for now 2022-01-26 16:42:13 -08:00
Ray Jenkins
9e1fd3cee5 Add comment about python thread API not necessarily setting underlying OS thread name. 2022-01-26 12:36:37 -06:00
Ray Jenkins
95d4497e2b Add python binding network thread name. 2022-01-25 13:20:31 -06:00
Ray Jenkins
d3055cc59a Use single transaction for setProcessClass and add fdbcli unit test. 2022-01-24 13:32:44 -08:00
Steve Atherton
6e410f7712
Set stdout to line buffered so shells without pseudo-terminals see realtime progress. () 2022-01-19 20:29:59 -08:00
Markus Pilman
ab76312b42
Merge pull request from sfc-gh-anoyes/anoyes/java-native-headers
Build native headers for jni
2022-01-11 13:46:39 -07:00
Lukas Joswiak
8a6bb8611a Update Python libfdb_c paths 2022-01-11 09:34:20 -08:00
Lukas Joswiak
bf9b4aeaab Rename libfdb_c in bindings dir 2022-01-11 09:34:20 -08:00
Lukas Joswiak
ff03fe99ff Add a copy of libfdb_c.so to lib for external client use 2022-01-11 09:34:20 -08:00
Kao Makino
95c72bfc1b Fix malformed JSON 2022-01-10 10:19:11 -08:00
Andrew Noyes
21a5aebc7c Rebuild fat jar if fdbJNI.cpp changes
At least now if you change fdbJNI.cpp it rebuilds the fat jar. I'm
pretty sure there are other problems with incremental recompilation here
but at least this is an improvement.
2022-01-06 15:45:23 -08:00
Andrew Noyes
5e140bc233 Build native headers for jni
This will help ensure that native java functions are implemented with
the right type.
2022-01-06 15:45:23 -08:00
Andrew Noyes
e5f943de08
Merge pull request from sfc-gh-anoyes/anoyes/test-generated-go-up-to-date
Update generated.go, and test to keep it up to date
2022-01-06 09:58:33 -08:00
Andrew Noyes
a3f37df94a
Merge pull request from sfc-gh-anoyes/anoyes/delete-non-virtual-destructor
Enable -Wdelete-non-virtual-dtor for clang build
2022-01-05 15:41:59 -08:00
Andrew Noyes
32ebdc6da2 Log status json if cluster is unavailable in fdbcli tests 2021-12-22 15:23:05 -08:00
Andrew Noyes
38a97a2e8f Increase default timeout to 5 minutes for add_fdbclient_test 2021-12-22 15:23:05 -08:00
Andrew Noyes
fba55557ae Update generated.go, and test to keep it up to date
Also remove some unnecessary cgo stuff, and add a description to
trace_partial_file_suffix
2021-12-21 15:16:50 -08:00
Andrew Noyes
fd33d31ff5 Enable -Wdelete-non-virtual-dtor for clang build
We had been disabling -Wdelete-non-virtual-dtor, because this seems to be done intentionally in the generated code of the actor compiler. I spent some time trying to rewrite it in a way that doesn't literally delete/destroy through a pointer to a base class without a virtual destructor, but I was unable to come up with something that passes correctness. My best guess is that we do this so that we can destroy actor state classes, call callbacks registered on the actor SAV, and then destroy the SAV.

Anyway now we'll detect new usages of deleting through a pointer to a base class without a virtual destructor.
2021-12-20 16:19:31 -08:00
Andrew Noyes
1452680d54
Merge pull request from sfc-gh-anoyes/anoyes/noexecstack
Link libfdb_c with `-z noexecstack`
2021-12-14 09:53:02 -08:00
Josh Slocum
26a36535fb fixing formatting 2021-12-10 12:47:53 -06:00
Josh Slocum
bd0ec5c69e Update bindings/c/test/mako/mako.c
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2021-12-10 12:47:53 -06:00
Josh Slocum
3afe9fb6e0 MVC bug fixes 2021-12-10 12:47:53 -06:00
Josh Slocum
da5d3e3ae8 Added new RETURN*_ON_ERROR variants to allow catching errors in other types of functions 2021-12-10 12:47:53 -06:00
Andrew Noyes
1ce9c0faed Add sleep 1 after killing/suspending a process
So that it's more likely to actually deliver the message
2021-12-08 16:44:03 -08:00
A.J. Beamon
1a1f15323a When checking whether a timeout fired too early, use a larger epsilon from the target duration. 2021-12-07 18:50:49 -08:00
Andrew Noyes
ef81252f31 Link libfdb_c with -z noexecstack 2021-12-07 10:51:10 -08:00
Andrew Noyes
b43f1640a4 Fix crashes for versioned symbols on mac m1
Also fix the build to not require relocations for arm linux

Tested on mac m1
2021-12-03 16:32:50 -08:00
Andrew Noyes
5d88fdf16c Use the correct directory for m1 for embedding libfdb_java 2021-12-03 16:31:50 -08:00
Tao Lin
9b0a9c4503
Return error when getRangeAndFlatMap has more & Improve simulation tests () 2021-12-03 12:50:07 -08:00
Josh Slocum
a8b1154728 Fix C++ style comments. 2021-12-02 12:18:08 -06:00
Josh Slocum
2c63d0ae03 cleaning up prints 2021-12-01 17:17:19 -06:00