380 Commits

Author SHA1 Message Date
sfc-gh-tclinkenbeard
94a65865d9 Merge remote-tracking branch 'origin/master' into fix-clang-warnings 2021-07-28 12:29:27 -07:00
Russell Sears
82603ff764
Merge pull request #5211 from hfu5/repeat-m
Add RepeatableReadMultiThreadClientTest
2021-07-27 18:57:22 -07:00
sfc-gh-tclinkenbeard
36703decee Merge remote-tracking branch 'origin/master' into fix-clang-warnings 2021-07-26 09:32:29 -07:00
Clement Pang
9af401b205 Add comments to orEqual() 2021-07-24 09:10:46 +08:00
Clement Pang
9496e12861 Make orEquals() public.
Addresses the easy issue for https://github.com/apple/foundationdb/issues/5190
2021-07-23 12:03:17 +08:00
sfc-gh-tclinkenbeard
e62e6503ac Fix most delete-non-virtual-dtor clang warnings 2021-07-21 23:32:44 -07:00
hao fu
e8f0c3c98a Add RepeatableReadMultiThreadClientTest
Add RepeatableReadMultiThreadClientTest to verify transactions
have repeatable read.
2021-07-17 18:02:44 -07:00
hao fu
492722b719 Setup cycleTest in the same txn
In order to have multiple threads running against same cluster, this has to be done.
2021-07-16 17:23:25 -07:00
hao fu
ba3e6ecb8c Add SidebandMultiThreadClientTest
This test validates causal consistency for multi-threaded client
2021-07-16 09:45:49 -07:00
Hao Fu
19d86efa7a Cherry pick 871b098e95b3107e216a986cfec4225c65b54252 from 6.3
Change the version to 710.

Add CycleMultiClientIntegrationTest
2021-07-14 15:36:53 -04:00
Russell Sears
c42815f15f
Merge pull request #5127 from vishesh/cherrypick
Making it possible to run a multiple-cluster Java integration test (cherry-pick of #4456 from 6.3)
2021-07-13 09:14:20 -07:00
Scott Fines
d1db0d4013 Making it possible to run a multiple-cluster Java integration test 2021-07-07 10:15:18 -07:00
Andrew Noyes
b92b930b93 Add exportLibrary for exporting external clients from jar
After this change, users would be able to add all fdb shared libraries
they need in the jar itself with something like `jar uf`.
2021-06-08 17:23:02 -07:00
Andrew Noyes
cd5c0481cc Use linker script for external workloads
This fixes an issue on Arm with lld:

ld.lld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC

I think the problem was that lld thought that the shared object might
need to interpose OPENSSL_armcap_P at runtime, although honestly I'm not
too sure about all this linker stuff.
2021-06-05 14:43:50 -07:00
Andrew Noyes
e892ca00e4 Use proper string equality 2021-05-14 00:03:03 +00:00
Andrew Noyes
4163270c02 Put aarch64 libfdb_java in the right place for fat jar 2021-05-13 23:13:14 +00:00
Jingyu Zhou
3ce31cb347 Upgrade api version from 700 to 710 2021-05-05 21:15:00 -07:00
A.J. Beamon
b2ee928a15
Merge pull request #4564 from sfc-gh-nwijetunga/network_busyness_java_api
Network Busyness Java API
2021-04-12 14:38:01 -07:00
Vishesh Yadav
8627fa1f16
Merge pull request #4597 from scottfines/no_string_format
Removing String.format from ByteArrayUtil.printable.
2021-04-09 10:59:28 -07:00
Scott Fines
275e650a80 Disabling tests that don't really work in the ctest development environment. They aren't important tests anyway 2021-04-02 11:09:08 -05:00
Scott Fines
ef1b924f07 Removing String.format from ByteArrayUtil.printable.
String.format can be potentially expensive, and if using `printable()`
within a hot loop that can be a performance penalty. Admittedly, it
doesn't seem like a good idea to call printable() from within a hot
loop, but if you have to, it's good for it to perform well.
2021-03-31 09:31:38 -05:00
Nim Wijetunga
bdccf8bc80 fix formatting issues 2021-03-25 00:11:11 +00:00
Nim Wijetunga
a84592df7e add test for network busyness 2021-03-24 23:59:40 +00:00
Nim Wijetunga
21f1e1d5de add comment 2021-03-24 23:38:42 +00:00
Nim Wijetunga
b5412b355e Add Java API for network busyness 2021-03-24 23:34:34 +00:00
Andrew Noyes
a76c7b9754 Fix several memory leaks and a thread leak 2021-03-11 23:58:32 +00:00
Vishesh Yadav
2cd3f45fd6 Merge remote-tracking branch 'apple/release-6.3' into master-format-final
release-6.3 was recently merged, and there were two PRs which were
merged in between and got those changes in here. Hence, since all the
changes were in, discarded the incoming changes and accepted all
current.
2021-03-10 16:50:44 -08:00
FDB Formatster
df90cc89de apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
Scott Fines
85a6e65e16
Merge pull request #4385 from scottfines/instrumented_java
Add the ability to instrument java driver actions
2021-03-09 13:46:31 -06:00
Scott Fines
329d6052b6 making times record counts too 2021-03-09 08:41:10 -06:00
Scott Fines
df6faa089a Addressing PR comments 2021-03-08 14:10:20 -06:00
Scott Fines
6e32eb75dc Adding a reference implementation of EventKeeper 2021-03-08 09:58:31 -06:00
Scott Fines
e080e989ac Better approach to non-locked stats gathering (including knowing what thread will operate) 2021-03-08 09:52:02 -06:00
Scott Fines
6c4ce1769d Moving external calls outside of the pointer lock 2021-03-08 08:46:06 -06:00
FDB Formatster
8a8c488ede apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-05 18:13:38 -06:00
Scott Fines
397af989bb More PR comments 2021-03-05 15:15:05 -06:00
Scott Fines
75be7243e8 Addressing PR comments 2021-03-05 14:27:00 -06:00
Scott Fines
c6731cc053 Basic instrumentation of Java Bindings 2021-03-05 14:26:46 -06:00
Andrew Noyes
e62cdbad3b Mention that tests share an fdb cluster 2021-03-02 16:31:58 +00:00
Andrew Noyes
18ee11e69a Use add_fdbclient_test for java integration tests
Also change add_fdbclient_test to run its subcommand with FDB_CLUSTER_FILE set
2021-03-02 01:54:17 +00:00
Scott Fines
7054328d8a New Unit and Integration Tests, and associated infrastructure.
First, this converts the java unit testing framework to junit 5.

Then we create some easy unit tests, move TupleTest logic into unit
tests, and move some other tests into ArrayUtilTests.

This also adds new cmake configuration to run junit and integration tests
through ctest.

There is a mechanism to write integration tests that depend on a running
fdb cluster by having those tests be skipped if they can't connect to a
database quickly. This should help to add those tests in CI, although
eventually we'll probably want to move this to throw an error instead
(once the CI build process clears out and we can guarantee a running
server during CI testing).

Converting to junit 5
2021-03-01 09:11:45 -06:00
Scott Fines
236510652d Resolves 4323: make Junit tests run as separate ctest tests.
This adds the ability to run junit tests through ctest a little more
easily (no Suites required). It also adds a small amount of
documentation to explain to the average developer how to go about using
Junit effectively.
2021-02-24 14:24:23 -06:00
Scott Fines
0bf7f9cf63 New Unit and Integration Tests, and associated infrastructure.
First, this converts the java unit testing framework to junit 5.

Then we create some easy unit tests, move TupleTest logic into unit
tests, and move some other tests into ArrayUtilTests.

This also adds new cmake configuration to run junit and integration tests
through ctest.

There is a mechanism to write integration tests that depend on a running
fdb cluster by having those tests be skipped if they can't connect to a
database quickly. This should help to add those tests in CI, although
eventually we'll probably want to move this to throw an error instead
(once the CI build process clears out and we can guarantee a running
server during CI testing).

Converting to junit 5
2021-02-24 09:35:35 -06:00
Scott Fines
2589c26907 Resolves 4323: make Junit tests run as separate ctest tests.
This adds the ability to run junit tests through ctest a little more
easily (no Suites required). It also adds a small amount of
documentation to explain to the average developer how to go about using
Junit effectively.
2021-02-12 15:34:04 -06:00
Xin Dong
8f311543f9
Apply suggestions from code review
Co-authored-by: A.J. Beamon <ajbeamon@users.noreply.github.com>
2020-10-12 09:50:45 -07:00
Xin Dong
079f27d47d Added API doc for the new range split API. Updated some old ones to be consistent. 2020-10-08 15:20:55 -07:00
Xin Dong
5d902f9177
Merge pull request #3394 from dongxinEric/feature/range-split-points-based-on-size
Feature/range split points based on size
2020-10-08 14:25:11 -07:00
Markus Pilman
c5af8c8dd0 Restore pom.xml.in
(which is apparently still in use)
2020-09-30 12:34:35 -06:00
Andrew Noyes
cd520dcf93
Merge pull request #3808 from sfc-gh-mpilman/features/ctest-client-smoketests
Add ability to run tests on fdb in ctest
2020-09-29 12:09:51 -07:00
Markus Pilman
3395e2b1a2 fix junit tests 2020-09-28 14:00:48 -06:00