Commit Graph

24972 Commits

Author SHA1 Message Date
Jon Fu b21a18b4ba Merge branch 'main' of github.com:apple/foundationdb into tenant-object-binding-tests 2023-01-27 11:19:54 -08:00
Josh Slocum f91aa35f70
disabling low-value unit tests (#9251)
* disabling low-value unit tests

* re-enable ConfigDBUnitTest but run it less frequently
2023-01-27 10:59:26 -08:00
Jon Fu 27f000bc45 patch to fix some existing bindingtester issues 2023-01-27 10:41:47 -08:00
Chunhao Xu f1bf983c6f GRV Proxy converts broken_promise errors to master_failed or tlog_failed 2023-01-27 10:23:13 -08:00
Xiaoxi Wang da3be5768f add listTenantIds 2023-01-27 09:33:45 -08:00
Josh Slocum 30ef4f5d27 changing randomKeyRange to randomNonEmptyKeyRange 2023-01-27 10:58:39 -06:00
Xiaoge Su 006a59b26f fixup! Fix the CMake build failure 2023-01-27 00:03:47 -08:00
Xiaoge Su 21ce2ab6f6 fixup! Fix a bunch of bugs 2023-01-26 21:31:05 -08:00
Nim Wijetunga 05a8a90830
Snapshot Backup Tenant Deletion Support (#9145)
Tenant deletion support for snapshot backups
2023-01-26 17:46:14 -08:00
Andrew Noyes 5c18ef11cf
Avoid repeated search in VersionedMap::erase(iterator) (#9143) 2023-01-26 17:26:05 -08:00
Josh Slocum 3b153635e9 add randomKeyRange to api tester with bug fix, and refactor TesterBlobGranuleCorrectnessWorkload to use t 2023-01-26 18:23:25 -06:00
Josh Slocum 0881c0e4e2
Bg perf 2 (#9052)
* added dynamic write amp calculations for blob granule compaction

* changing blob worker parallelism counts to bytes budget to handle less uniform operation sizes

* more snapshotting parallelism for behind feeds

* add a bit of observability when this happens

* adding knobs

* typo

* adjusting some knobs up with buggified granule size

* fixing bugs in dynamic write amp

* fixing formatting

* fixing bug in knob buggification

* fix formatting
2023-01-26 16:56:45 -06:00
Jon Fu 4c2a09aab5 add arg and return type to the c_api for impl.py 2023-01-26 14:51:08 -08:00
Josh Slocum 5b169fdf2a
blob granule validation and consistency check default to non-cached reads (#8815) 2023-01-26 16:46:11 -06:00
Jingyu Zhou 4641c9b2a7 Merge remote-tracking branch 'apple/main' into fix 2023-01-26 13:53:33 -08:00
Yanqin Jin d461dbdd7b
Extend `metacluster status` on non-management clusters (#9179)
The metacluster status command in fdbcli currently reports some useful metacluster information when run on a
management cluster. We should update this command to report a status even on data clusters of a metacluster and
standalone clusters that do not belong to any metacluster.

- On data clusters, this would report that the cluster is a data cluster as well its name and the name of the metacluster it is a part of.
- On standalone clusters, status should report that the cluster is not part of a metacluster.

Test plan:
- CI
- Manual test
- Added new test `metacluster_fdbcli_tests.py` that can be run with ctest `ctest -R metacluster_fdbcli_tests`
2023-01-26 13:04:22 -08:00
Jingyu Zhou ba43418338
Merge pull request #9238 from sfc-gh-clin/fix-nightly-failure
A Fix to give the correct behavior of canKillProcesses when primary and remote use the same dcid
2023-01-26 12:40:15 -08:00
Hui Liu 73bf89cd62 Define knob url for blob manifest files 2023-01-26 12:38:26 -08:00
Yi Wu 4d60328e76
Update restart test for encryption, Redwood and snapshot (#9214)
Changes:
1. Update `ConfigureDatabase` workload to test with Redwood, while previously it does not. Also when encryption is enabled, only test with Redwood and not test the migration to other storage engine types, as currently only Redwood supports encryption.
2. Update multiple restart tests so that when testing upgrade from/downgrade to 7.2, disable encryption. This is due to recent change to make encryption controlled by DB config instead of a knob make 7.3 encryption incompatible with 7.2 encryption, and 7.2 encryption is considered an incomplete feature. This is done by splitting `from_7.1.0` test directory into `from_7.1.0_until_7.2.0`/`from_7.2.0_until_7.3.0`/`from_7.3.0`, duplicating every test to these directories and add `disableEncryption=true` when needed. Except...
3. For tests that run `SnapTest`, keep them in `from_7.1.0_until_7.2.0` directory. These tests could fail with 7.2/7.3 restart test, and due to separate Joshua issue, these failures are not exposed when they stay in `from_7.1.0` directory. The plan is to only keep these snapshot tests in `from_7.3.0` (or the directory for restart from the latest version) once issues are fixed.
2023-01-26 12:34:41 -08:00
Jingyu Zhou 6ed1c326b3
Merge pull request #9249 from sfc-gh-huliu/compileerror
Fix compile error with VSCode
2023-01-26 12:33:11 -08:00
Hui Liu 1548b55ac4 Fix compile error with VSCode 2023-01-26 11:35:47 -08:00
Xiaoxi Wang 79b719b4cc change the workload assertion 2023-01-26 10:48:50 -08:00
Chaoguang Lin 285cb46b21 Merge branch 'main' of github.com:apple/foundationdb into fix-nightly-failure 2023-01-26 10:32:36 -08:00
Evan Tschannen bbba0e10a8
Fixed a change feed encryption bug (#9242)
* encrypted change feeds, still missing re-encryption of mutations which have been modified

* removed inverted filtering and reduced the number of comparisons for calculating clear intersection

* fix merge conflict

* fixed another merge conflict

* encrypt mutations which have been modified

* renamed encrypted to encryptedMutation

* fix formatting

* format nativeAPI

* format code

* more formatting fixes

* fix: encrypted clear ranges which have been modified by shard boundaries need to be re-encrypted

* fix formatting
2023-01-26 09:52:18 -08:00
Josh Slocum f8f47cc56d
fixing racing BM assignment and split update from previous owner (#9244)
* fixing racing BM assignment and split update from previous owner

* formatting
2023-01-26 09:03:59 -08:00
Markus Pilman 64c11c1f34 Implemented tenant lock and basic test 2023-01-26 15:47:39 +01:00
Markus Pilman 5afe9cc205
Merge pull request #9212 from sfc-gh-ljoswiak/fixes/test-causal-read-risky-param
Add parameter for test_causal_read_risky database option
2023-01-26 14:29:01 +01:00
A.J. Beamon 72c5abc0f5 Refactor storage quotas to store them in a key backed map in the tenant metadata space 2023-01-25 20:48:17 -08:00
Jingyu Zhou 7ce64868e7 Fix includes 2023-01-25 19:25:35 -08:00
Chaoguang Lin 4c5cbe6cda Merge branch 'main' of github.com:apple/foundationdb into fix-nightly-failure 2023-01-25 18:43:37 -08:00
Jingyu Zhou afcca4a1ee Add from_7.0.0_until_7.2.0 for UpgradeAndBackupRestore tests 2023-01-25 18:01:47 -08:00
Jingyu Zhou 280eedeb9f Change UpgradeAndBackupRestore to from_7.2.4
Because of the new option "disabledFailureInjectionWorkloads" is not available
until 7.2.4.
2023-01-25 17:59:03 -08:00
Jingyu Zhou d10ea094f4 Add a new toml option to disable failure injection workload
This is needed for UpgradeAndBackupRestore-1 to make sure the DB is recoverable
so that the part 2 can start.
2023-01-25 17:58:46 -08:00
Jingyu Zhou 289f024481 Change SubmitBackup to only reboot in Attrition
Otherwise, the Attrition can RebootAndDelete tlogs in remote DC such that the
remote is unusable and blocking recovery to fully_recovered state. In fact,
the FirstCycleTest can only reach the accepting_commits state.

In the part 2 of the restarting test, the runTests() wait for quietDatabase()
to reach fully fully_recovered state, but was stuck in the accepting_commits
state.
2023-01-25 17:56:10 -08:00
Lukas Joswiak 840faa0ef4 Add parameter for test_causal_read_risky database option 2023-01-25 16:02:27 -08:00
Chaoguang Lin fce9490c19 A Fix from Evan 2023-01-25 15:55:24 -08:00
Yi Wu 8cbcdf9ba8
EaR: make authentication mode non-changeable in restart tests (#9237)
Pass authentication mode through restartInfo.ini and use the same authentication mode after restart in simulation.
2023-01-25 15:54:40 -08:00
Xiaoxi Wang 0bb2718f2a expected size of tenantIds 2023-01-25 15:27:11 -08:00
Hui Liu 302faeac79
Merge pull request #9235 from sfc-gh-huliu/s3url
Fix mutation log s3 url for blob restore
2023-01-25 14:12:54 -08:00
Jon Fu 6493da877a add method to return idfuture 2023-01-25 12:45:35 -08:00
Jon Fu 158b1d4fbf Merge branch 'main' of github.com:apple/foundationdb into tenant-object-binding-tests 2023-01-25 12:25:32 -08:00
Xiaoxi Wang 24fd89c3fb make workload state change idempotent to transaction retry 2023-01-25 12:14:54 -08:00
Sreenath Bodagala fe4a839600
- Do not add fdbserver processes to the client list. (#9225)
Note: Server processes started getting reported as clients since 7.1.0
(not sure if this change in behavior was intentional or not), and this
breaks the operator upgrade logic.
2023-01-25 14:39:32 -05:00
Hui Liu 193ff3174e Fix s3 url error for blob restore 2023-01-25 10:29:48 -08:00
neethuhaneesha 3d113ac150
Changing histogram type. (#9232) 2023-01-25 09:50:40 -08:00
Xiaoxi Wang 33bddb31c7 parse tenant id during getResolution phase 2023-01-25 09:49:04 -08:00
Jingyu Zhou 27e1b76b68
Merge pull request #9226 from xis19/main-bench
Extract boost/asio.hpp out from flow/network.h
2023-01-25 09:14:52 -08:00
Hui Liu f8334ba78a
Merge pull request #9229 from sfc-gh-huliu/backuptenant
Add tenant metadata ranges to manifest backup
2023-01-24 19:08:05 -08:00
Hui Liu 9310057446
Merge pull request #9220 from sfc-gh-huliu/fix
fix fdbcli status error
2023-01-24 18:50:07 -08:00
Hui Liu e1b06a62f9 Add tenant metadata ranges to manifest backup 2023-01-24 17:09:04 -08:00