Commit Graph

24972 Commits

Author SHA1 Message Date
Xiaoxi Wang 46027aa4aa
Merge pull request #9272 from sfc-gh-xwang/feature/main/listTenant
Change listTenants API to only list tenant Ids
2023-02-06 15:22:31 -08:00
Xiaoxi Wang 6df5f1fa56 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/clearRange 2023-02-06 14:28:35 -08:00
Junhyun Shim 180ddba4ec Fix clang format 2023-02-06 23:14:39 +01:00
Junhyun Shim be225acd2a Merge remote-tracking branch 'origin/main' into authz-tenant-name-to-tenant-id 2023-02-06 23:13:43 +01:00
Josh Slocum 181970b160
adding metadata-only update for empty delta files to avoid blob storage writes (#9312) 2023-02-06 16:11:35 -06:00
Yi Wu d3bc2afc8e
EaR: storage server uses encryption DB config (#9115)
The PR is updating storage server and Redwood to enable encryption based on the encryption mode in DB config, which was previously controlled by a knob. High level changes are
1. Passing encryption mode in DB config to storage server
    1.1 If it is a new storage server, pass the encryption mode through `InitializeStorageRequest`. the encryption mode is pass to Redwood for initialization
    1.2 If it is an existing storage server, on restart the storage server will send `GetStorageServerRejoinInfoRequest` to commit proxy, and commit proxy will return the current encryption mode, which it get from DB config on its own initialization. Storage server will compare the DB config encryption mode to the local storage encryption mode, and fail if they don't match
2. Adding a new `encryptionMode()` method to `IKeyValueStore`, which return a future of local encryption mode of the KV store instance. A KV store supporting encryption would need to persist its own encryption mode, and return the mode via the API.
3. Redwood accepts encryption mode from its constructor. For a new Redwood instance, caller has to specific the encryption mode, which will be stored in Redwood per-instance file header. For existing instance, caller is supposed to not passing the encryption mode, and let Redwood find it out from its own header.
4. Refactoring in Redwood to accommodate the above changes.
2023-02-06 14:02:31 -08:00
Junhyun Shim 0d85425964 Add cross-tenant raw access testcase 2023-02-06 22:48:07 +01:00
Josh Slocum 0a19db8ce9
Blob granule restarting tests (#9259)
* Adding BlobGranuleRestartCycle tests

* test harness fix to not copy blob symlinks for restarting test
2023-02-06 14:54:20 -06:00
Junhyun Shim 1afd63d7e3 Minimize the risk of TracedTooManyLines in simulation
- Disable audit logging for simulation
- Relax the max_trace_lines knob limit to reduce false positives
2023-02-06 21:50:39 +01:00
Xiaoxi Wang 18a3de3594 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-02-06 12:15:40 -08:00
Josh Slocum 73c9735c21
Bg api tenant tests (#9301)
* fixing tenant creation + setup order

* removing seenReadSuccess since verifyBlobRange is called before test start

* fixing bg_desc skip tenant check
2023-02-06 13:18:27 -06:00
Ankita Kejriwal 3b418b4431 Merge branch 'main' of github.com:apple/foundationdb into debug2 2023-02-06 11:07:28 -08:00
Jingyu Zhou 4809b22f6c
Merge pull request #9254 from sfc-gh-yiwu/restart_fix
Fix malform from_7.0.0/UpgradeAndBackupRestore test spec
2023-02-06 10:34:18 -08:00
Xiaoxi Wang 8cfc3f28e1
Merge pull request #9307 from sfc-gh-xwang/fix/main/tenantModeUpdate
fix temporary tenantMode=0 by only updating db info when recovery cou…
2023-02-06 10:25:32 -08:00
A.J. Beamon 99bc126667 Merge branch 'main' into storage-quota-in-tenant-metadata-space 2023-02-06 09:32:24 -08:00
Markus Pilman f321933bc9 Minor bug fix 2023-02-06 17:34:46 +01:00
Junhyun Shim 0d1801ed88 Expose private endpoints used in MVC mode and make MVT token sticky 2023-02-06 17:23:26 +01:00
Josh Slocum 9eac2b5f8b
un-buggifying PEEK_TRACKER_EXPIRATION_TIME to invalid value (#9275) 2023-02-06 09:06:16 -06:00
Josh Slocum 4101379295
Assumption that caller would be cancelled after delay(0) after triggering simInjectFailure was false because of granuleMetadata.clearAsync. (#9286) 2023-02-06 09:05:36 -06:00
Josh Slocum 6b5500a930
auto-formatting test harness file (#9302) 2023-02-06 09:05:09 -06:00
Junhyun Shim 6993e391f2 Extend authz test to include with/without GRV caching and forced MVC 2023-02-06 13:18:10 +01:00
Markus Pilman 1fb3c33b3f Merge remote-tracking branch 'origin/main' into features/tenant-lock2
# Conflicts:
#	fdbserver/CommitProxyServer.actor.cpp
2023-02-06 11:58:49 +01:00
Markus Pilman 280e50d42d fixed compilation issues 2023-02-06 11:56:39 +01:00
Yi Wu 680c9d49dc Fix malform from_7.0.0/UpgradeAndBackupRestore test spec 2023-02-05 19:57:59 -08:00
Xiaoxi Wang 3a84fc5375 fix temporary tenantMode=0 by only updating db info when recovery count increasing 2023-02-05 18:37:46 -08:00
Xiaoxi Wang 241f32262e Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-02-05 11:42:04 -08:00
Yanqin Jin 5087c08637
BUGGIFY `safeThreadFutureToFuture()` (#9263)
The `safeThreadFutureToFuture` function converts a `ThreadFuture` to a Future. There are a few cases where we have a
 result of type `ThreadFuture<Standalone<T>>` or `ThreadFuture<Optional<Standalone<T>>` where the memory is not
actually owned by the Standalone. Rather it is owned by the ThreadFuture.

Eventually we should fix this so that the memory is properly owned by the `Standalone`, which is beyond the scope of
this PR. Until then, we should update the implementation of `safeThreadFutureToFuture` to take away ownership from the
`Standalone`/`Optional<Standalone>` so we can detect this problem in simulation.

Test plan:
- correctness test with and without valgrind
2023-02-05 08:22:52 -08:00
A.J. Beamon 6991b62106 Improve comments on runRYWTransaction*, use MAX_TENANTS_PER_CLUSTER instead of TOO_MANY knob in tenant cache. 2023-02-03 15:35:47 -08:00
Xiaoxi Wang f1dd3aea92 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-02-03 15:27:21 -08:00
Jingyu Zhou ed0ce34a1e
Merge pull request #9304 from sfc-gh-xwang/fix/main/testTimeout 2023-02-03 15:20:30 -08:00
Junhyun Shim 56d3438ea4 Add tenant ID fetch to mako (for token signing) 2023-02-03 23:55:55 +01:00
Xiaoxi Wang 7190fa0c08 Merge branch 'main' of https://github.com/apple/foundationdb into fix/main/testTimeout 2023-02-03 13:48:54 -08:00
Xiaoxi Wang b757e8914a fix BOOST_SYSTEM_NO_LIB redefinition in CI 2023-02-03 13:47:50 -08:00
Xiaoxi Wang f1a7841fb8 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-02-03 13:02:29 -08:00
Xiaoxi Wang 8371883e3b remove log; disabled clear range temporarily 2023-02-03 12:49:23 -08:00
Junhyun Shim ce652fa284 Replace AuthZ's use of tenant names in token with tenant ID
Also, to minimize audit log loss, handle token usage audit logging at each usage.
This has a side-effect of making the token use log less bursty.
This also subtly changes the dedup cache policy.
Dedup time window used to be 5 seconds (default) since the start of batch-logging.
Now it's 5 seconds from the first usage since the closing of the previous dedup window
2023-02-03 21:46:31 +01:00
Xiaoxi Wang b0b8f21dcc Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/clearRange 2023-02-03 12:27:03 -08:00
Xiaoxi Wang b0902a515a handle prefix convert to negative id 2023-02-03 12:26:25 -08:00
Ankita Kejriwal 1a240a0eab Merge branch 'main' of github.com:apple/foundationdb into debug2 2023-02-03 12:26:19 -08:00
Xiaoxi Wang 0e242226bc add trace log; fix size bug 2023-02-03 10:36:57 -08:00
Hui Liu cafff2c4d0
Merge pull request #9290 from sfc-gh-huliu/splitpoints
Support pagination for StorageServer splitMetrics API
2023-02-03 09:43:09 -08:00
Hui Liu 586d7261f4
Merge pull request #9297 from sfc-gh-huliu/range
Add metadataVersion to manifest backup
2023-02-03 09:41:38 -08:00
Ankita Kejriwal 913bc9114d Handle errors that can't be sent in reply; fix formatting 2023-02-02 19:05:05 -08:00
Xiaoxi Wang ae6b57d5c8 handle system keys 2023-02-02 16:25:41 -08:00
Xiaoxi Wang 3e1fee8ed4 finalize splitClearRangeByTenant unit test and implement replaceRawClearRanges 2023-02-02 15:19:21 -08:00
Hui Liu 774446d3a0 Support pagination for StorageServer splitMetrics API 2023-02-02 14:21:38 -08:00
Xiaoxi Wang 53ce648325 set clearAfterTest=false in RawTenantAccessClean test 2023-02-02 13:26:56 -08:00
Jingyu Zhou c61fc918e0
Merge pull request #9295 from apple/sfc-gh-dadkins/revert-trace-clock-change
Revert "Use real clock source for trace events in real fdbserver, but now() in simulation. (#9270)
2023-02-02 12:33:39 -08:00
Hui Liu d5ff370e4e Add metadataVersion to manifest backup 2023-02-02 11:39:01 -08:00
Xiaoxi Wang 86a0ef8b9f set clearAfterTest=false in RawTenantAccessClean test 2023-02-02 11:06:40 -08:00