Commit Graph

319 Commits

Author SHA1 Message Date
Vaidas Gasiunas 4a178fe658 get_client_status: fix formatting in comments 2023-01-16 17:36:32 +01:00
Vaidas Gasiunas 46178f4c74 get_client_report: commenting DatabaseState::getClientStatus 2023-01-16 16:50:17 +01:00
Vaidas Gasiunas d064487550 client_status_report: Change variable names 2023-01-16 15:17:37 +01:00
Vaidas Gasiunas e152fb28af client_status_report: report cluster id from the DatabaseContext only 2023-01-16 14:57:46 +01:00
Vaidas Gasiunas 962cd6efcd get_client_status: determine the health status 2023-01-12 18:46:04 +01:00
Vaidas Gasiunas 8d734fba85 get_client_status: report database connection status 2023-01-11 17:43:35 +01:00
Vaidas Gasiunas 265c8f7f78 get_client_status: Fix compiler warning 2023-01-10 14:31:04 +01:00
Vaidas Gasiunas 6162fc333c get_client_status: Provide more MVC database status info, test client versions 2023-01-09 19:36:39 +01:00
Vaidas Gasiunas f14f2ccc0d Introducing API function get_client_status; Exposing and testing database initialization state 2023-01-09 16:09:58 +01:00
A.J. Beamon 62604bcc28 Merge branch 'main' into expand-optional-erroror-map 2023-01-04 15:46:23 -08:00
Christian Wende 719eb62934 MultiVersionTransaction: call setTimeout in setOption only when necessary 2022-12-16 18:33:16 +01:00
A.J. Beamon 985bbe66d4 Add support for flatMap in optional and erroror. Allow calling map with a lambda without specifying the return type template parameter. 2022-12-15 15:32:02 -08:00
Christian Wende d51d94d8d7 MultiVersionTransaction: Improve Comments 2022-12-08 10:43:09 +01:00
Christian Wende fc0f9a5ab4 MultiVersionTransaction: Add comments 2022-12-07 11:08:22 +01:00
Christian Wende 351eaed865
Merge branch 'main' into client-timout-optimizations 2022-12-05 16:56:31 +01:00
Christian Wende 2c18a276c8 MultiverstionTransaction: Remove redundant setOption calls 2022-12-05 16:14:12 +01:00
Vaidas Gasiunas 9826bbce15
Tracking Multi-Version Database Initialization states, failing if client is not compatible to the server (#8868)
* MVC: Keep track of database initialization state; some refactoring of database update for better readability

* Do not create unused temp directory in old binaries downloader

* MVC: Fail transactions with an error code on database initialization errors

* Exit client config tester immediately on errors

* Fail database operations for incompatible clients and database initialization errors

* Some tests for database initialization errors

* local_cluster: reopen fdbmonitor.log in append mode, close it before reopening

* Introduce an option ignore_incompatible_client restoring the behavior of indefinite wait when there is no client matching a cluster version

* Multi-Version API: remove atomics from initializationError

* Update GO bindings: adding option ignore_incompatible_client

* MVC to fail on incompatible clients: addressing review comments

* MVC: An option to fail in case of an incompatible client

* fdb_c_client_config_tester: update help text
2022-12-01 23:28:30 +01:00
Vaidas Gasiunas 084a78fded
Let onError always succeed on cluster version changes (#8841) 2022-11-21 20:31:32 +01:00
Zhe Wu 9ade12d313 Switch the knob that enables shared map to enable client using cluster id key 2022-11-19 12:46:05 -08:00
Zhe Wu 81fc8e9d2f Using a knob to guard updateClusterSharedStateMap 2022-11-19 12:46:05 -08:00
Vaidas Gasiunas 0160570c2a
Failing client initialization on errors in external clients; Update package version to 7.3.0 (#8719)
* Network setup to fail on the initialization failures of external clients

* MVC: A more intuitive error when failing to load an API function

* Testing initializing FDB client with different configuration options

* Enable strict external client configuration check only for new API versions

* Upgrade FDB package version to 7.3.0; Update upgrade tests
2022-11-10 13:01:41 +01:00
Vaidas Gasiunas ce3038bfe5
Use a network option for retaining temporary client lib copies instead of a client knob (#8630) 2022-11-07 14:46:17 +01:00
Vaidas Gasiunas 18b852c4e4
Improving troubleshooting of stopping the FDB client thread (#8629)
* Upgrade tests: dump thread call stacks of the tester process if it fails to terminate

* ApiTester: log before and after stopping the network thread

* Catch and print exceptions in closeTraceFile; Close trace file at the end of MVC runNetwork

* Change trace event name for MVC runNetwork termination

Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>

Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2022-11-03 13:20:21 +01:00
sfc-gh-tclinkenbeard 0eb1598afa Merge remote-tracking branch 'origin/main' into expose-txn-cost 2022-10-30 09:36:37 -07:00
Lukas Joswiak 9625efd5b9 Add comment about configuration database 2022-10-27 13:56:13 -07:00
Lukas Joswiak 8e76621653 Disable shared state updates on configuration database 2022-10-27 13:56:13 -07:00
sfc-gh-tclinkenbeard 49933375e1 Addressed review comments 2022-10-25 13:50:10 -07:00
sfc-gh-tclinkenbeard 32ae7bb529 Merge remote-tracking branch 'origin/main' into expose-txn-cost 2022-10-23 12:59:07 -07:00
Dennis Zhou 77e2e4a381 blob/c: tenant verifyBlobRange() c api 2022-10-17 11:42:26 -05:00
Dennis Zhou 9d38ddfabc blob/c: tenant listBlobbifiedRanges() c api 2022-10-17 11:42:07 -05:00
Dennis Zhou a0246caebb blob/c: tenant (un)blobbify() c api 2022-10-17 11:41:44 -05:00
Dennis Zhou b2ce2bb72c blob: fix purge & wait tenant apis to use the ITenant interface 2022-10-17 11:41:12 -05:00
Dennis Zhou 622f2a79db api: add TenantBlobRangeApi feature flag and use for purge tenant api 2022-10-17 11:41:02 -05:00
sfc-gh-tclinkenbeard 00eead1d8d Add fdb_transaction_get_total_cost to C bindings 2022-10-16 21:58:11 -07:00
Dan Lambright 1231ffbbe4 knob name change/rebase 2022-10-12 20:26:44 -04:00
Dan Lambright ef3efbc641 Merge remote-tracking branch 'origin/main' into tracelib 2022-10-07 21:32:26 -04:00
Dan Lambright ad327669ed Merge remote-tracking branch 'origin/master' into tracelib 2022-10-07 16:53:39 -04:00
Dan Lambright 2402b813e9 do not unlink fdb_c in tmp dir if knob set 2022-10-07 16:32:28 -04:00
A.J. Beamon 4a6009a339
The MVC did not clean up timeout related memory until the timeout elapsed, even if the transaction was destroyed. It also did not properly handle a timeout value of 0. (#8371) 2022-10-07 17:37:22 +02:00
Jon Fu 7a09b701cc
Merge pull request #8141 from sfc-gh-jfu/network-disable-bypass
Introduce network option for disabling mvc bypass
2022-09-21 17:33:48 -07:00
Jon Fu 937fb38dcc address review comments 2022-09-21 16:23:12 -07:00
Dennis Zhou 4ea4546cb6 blob/java: verifyBlobRange() with latestVersion 2022-09-21 14:07:16 -07:00
Jon Fu 1f778f9d76 Merge branch 'main' of github.com:apple/foundationdb into network-disable-bypass 2022-09-20 09:30:53 -07:00
Jon Fu 1abac8ea9f check on shared state ptr in native api and add to test spec in api tester 2022-09-16 15:11:33 -07:00
Jon Fu 7b0285a205 attempt to pass sim tests and api tests 2022-09-15 11:02:28 -07:00
Jon Fu a7956f42a4 add version guard and add network option to testConfig 2022-09-14 13:15:24 -07:00
A.J. Beamon 87ee0a2963
Merge pull request #8160 from sfc-gh-ajbeamon/remove-unnecessary-option
Remove unnecessary special key-space relaxed option in binding tenant management
2022-09-12 17:06:04 -07:00
A.J. Beamon 0c91336461 Remove unnecessary special key-space relaxed option in binding tenant management 2022-09-12 14:30:28 -07:00
Markus Pilman 59ce49913a
Merge pull request #8146 from sfc-gh-tclinkenbeard/improve-code-coverage
Increase the number of unit tests run in `RandomUnitTests.toml`
2022-09-12 15:10:47 -06:00
sfc-gh-tclinkenbeard 39c6989673 Remove some simulation unit tests.
These tests should not be run in simulation, because they either run too
long or break determinism.
2022-09-11 00:36:18 -07:00