Commit Graph

489 Commits

Author SHA1 Message Date
Oleg Samarin 1cb0a860da Added more javadoc information for com.apple.foundationdb.LocalityUtil.getAddressesForKey
(cherry picked from commit af51830eafef881f6bfd880b17982ea62f7823c2)
2023-07-10 11:04:27 +03:00
Zhe Wu 5c8a163c72
Update main branch to 7.4 (#10459)
* Update main branch to 7.4

* Update API version to 740

* Makes fdb_c_client_config_tests.py passing after API version update

* Remove from_7.3.0_until_7.4.0 and add from_7.3.0

* Update tests in fdb_c_client_config_tests.py
2023-06-15 10:19:39 +02:00
Aaron Molitor a718a31dd7 update links to foundationdb.org to reference GitHub 2023-05-30 10:15:20 -05:00
Vaidas Gasiunas 9bc55f67c3
Fix releasing watches on future cancellation (#10304)
* Test watch cleanup on cancel

* Fix clearing the database in Java integration tests

* Always cancel the futures wrapped by MVC abortable futures

* More tests for watch cleanup

* Fix clear database database in some Java integration tests
2023-05-22 22:01:27 +02:00
Vaidas Gasiunas d16d53739e Some more tests for future cancelations in Java bindings 2023-05-12 20:43:18 +02:00
Vaidas Gasiunas 574a4cec71 Remove debugging output in future cancellation tests 2023-05-12 16:20:54 +02:00
Vaidas Gasiunas 6594c4d302 Java binding: Fix reentrant locking in future cancelation 2023-05-12 15:58:38 +02:00
Vaidas Gasiunas 607a1040ed Testing future cancelation in Java bindings with an external client 2023-05-12 15:57:45 +02:00
Zhe Wu e3490a1af8 Update API version to 730 2023-05-10 11:26:46 -07:00
Hao Fu 3158f8b033
Fix hashCode() and equals() for MappedKeyValue (#10170) 2023-05-08 16:54:11 -07:00
A.J. Beamon 95cf9948a1 Add API version protection for the change to use a default option for used during commit protection in Java 2023-05-03 16:18:11 -07:00
hao fu 29161b2fda Revert matchIndex feature
It is not protocol compatible, revert it to avoid deployment issue.
Will have a new PR to have the feature if moving forward.
2023-04-17 09:39:45 -07:00
Markus Pilman 5bebb5b4aa
Merge pull request #9492 from sfc-gh-vgasiunas/vgasiunas-api-version-defs
Centralize definition of API Version for Java, Python and C API
2023-02-28 12:04:02 -07:00
Russell Sears d02118db67 Add support for using pre-downloaded junit dependencies 2023-02-27 15:38:58 -06:00
Vaidas Gasiunas 8a934c4f93 Fix comment in TestApiVersion 2023-02-27 18:30:50 +01:00
Vaidas Gasiunas e3b3bf9307 Fix formatting in TestApiVersion 2023-02-27 18:27:42 +01:00
Vaidas Gasiunas 83f76b60b9 Define the API version separately for the Java tests that are not executed as a part of the CI 2023-02-27 18:20:11 +01:00
Vaidas Gasiunas 8ddda99036 Fix name of FDB_USE_LATEST_BINDINGS_API_VERSION 2023-02-27 16:53:35 +01:00
Vaidas Gasiunas 1b6ced1a09 Define latest C API version in one place 2023-02-27 15:13:56 +01:00
Vaidas Gasiunas 7f35b395d3 Define the latest Java bindings API version in one place 2023-02-27 11:53:01 +01:00
Vaidas Gasiunas 402f618180
Default transaction options for report_conflicting_keys and used_during_commit_protection_disable (#9441)
* Introducing default transaction options for report_conflicting_keys and used_during_commit_protection_disable, set the latter option always in Java bindings

* Reformatting TransactionIntegrationTest.java

* Update description of transaction_report_conflicting_keys option

* Remove dependency between mock and real database implementation in RangeQueryTest.java

* Update generated.go after changing desciption of an option

* Small improvements of the TransactionIntegrationTest code
2023-02-23 18:05:01 +01:00
Jingyu Zhou 9a8c346d1a
Merge pull request #9439 from sfc-gh-vgasiunas/vgasiunas-fix-java-getclientstatus-test
Fix Java GetClientStatusIntegrationTest
2023-02-22 08:58:56 -08:00
Josh Slocum bf97c3dbce
adding java tenant blob management test and fixing bug it found (#9428) 2023-02-22 10:52:26 -06:00
Vaidas Gasiunas cd0696e1cd Fix Java GetClientStatus integration test by wait on the future 2023-02-22 12:46:26 +01:00
Josh Slocum bfb3ffc509
added c and java apis for granule flush (#9412) 2023-02-20 10:28:11 -06:00
Josh Slocum 6c2fb13173
adding wait parameter to blobbify api (#9360)
* adding wait parameter to blobbify api

* formatting

* fixing comment style

* fixing bug and adding debugging

* adding blob ranges unit test

* testing both blobbify cases in cancel

* formatting

* switch to explicit blocking api instead of boolean flag

* remove comments

* format
2023-02-17 12:20:53 -06:00
Vaidas Gasiunas afc25035f8
Client status report API in Java and python bindings (#9366)
* get_client_status: add to Java bindings

* Add get_client_status in python binding

* Make python unit tests available as ctest

* Fix file name in the copyright header

* Fix library path name for mac

* get_client_status: Minor changes in Java & Python bindings addressing review comments

* Rename fdb_python_unit_tests to unit_tests
2023-02-15 18:00:53 +01:00
Josh Slocum 2f8f7515e8
adding java blob granules unit test (#9317)
* adding java blob granules unit test

* reduce sleep and organize imports
2023-02-08 12:02:14 -06:00
Jon Fu c07657c592 push string onto stack when active tenant is set 2023-01-31 12:34:37 -08:00
Jon Fu 27f000bc45 patch to fix some existing bindingtester issues 2023-01-27 10:41:47 -08:00
Jon Fu 6493da877a add method to return idfuture 2023-01-25 12:45:35 -08:00
Jon Fu c2c582202a Merge branch 'main' of github.com:apple/foundationdb into tenant-object-binding-tests 2023-01-24 09:10:06 -08:00
Jon Fu 0210bad4ae add back java optimization 2023-01-20 08:58:16 -08:00
Jon Fu d5c8786fdf revert changes that could lead to race condition 2023-01-19 15:23:40 -08:00
Jon Fu 4797716937 remove final from tenant id java declaration 2023-01-13 11:25:55 -08:00
Jon Fu 34b7cead4c explicitly delref on tenant and optimize storing id in java/python 2023-01-13 11:13:45 -08:00
Jon Fu 0238b06e5f add to java and python stack tester 2023-01-12 13:54:52 -08:00
Jon Fu 181f208c29 try adding to python and java binding tests 2023-01-12 11:49:17 -08:00
Jon Fu 15b70ec5ac fix java errors 2023-01-11 11:43:59 -08:00
Jon Fu cb6ad92ed6 initial commit to add python and Java binding support 2023-01-10 14:19:03 -08:00
Hao Fu d11b5b44e0
Remove boundaryAndExist (#8994)
* Remove boundaryAndExist

Client knows whether an entry is a boundary, and client also can
see whether the record for that entry exist by checking whether
the rangeResult is empty. This field is useless.

This field breaks backward compatibility, need to remove it.
2022-12-07 18:08:15 -08:00
Aaron Molitor 39ffd52fd9 remove javadoc errors/warnings 2022-12-02 12:02:35 -06:00
Dennis Zhou 4a04e503a6 blob/java: tenant purgeBlobGranules() java api 2022-10-17 11:42:27 -05:00
Dennis Zhou cfe62685e9 blob/java: tenant verifyBlobRange() java api 2022-10-17 11:42:27 -05:00
Dennis Zhou 4cca9a8c70 blob/java: tenant listBlobbifiedRanges() java api 2022-10-17 11:42:08 -05:00
Dennis Zhou da94188570 blob/java: tenant (un)blobbify() java api 2022-10-17 11:41:45 -05:00
Markus Pilman 4d9465a30b Disable java-workload in IDE-mode 2022-10-10 10:29:23 -06:00
A.J. Beamon 8b5c6c83cd The Java binding tester shouldn't swallow Context errors; fix an assertion failure caused by incorrect management of the transaction map; remove some unneeded output from binding tester runs 2022-09-29 12:30:04 -07:00
Dennis Zhou 4ea4546cb6 blob/java: verifyBlobRange() with latestVersion 2022-09-21 14:07:16 -07:00
Dennis Zhou 86eac7386f blob/java: fix verifyBlobRange() calling wrong function
verifyBlobRange() accidentally called list_blobbified_ranges().
2022-09-21 14:04:58 -07:00