Commit Graph

6422 Commits

Author SHA1 Message Date
Ankita Kejriwal ca8375c8ec Merge branch 'main' of github.com:apple/foundationdb into commitproxies 2022-11-15 10:56:53 -08:00
Hui Liu 00c270fc3f BlobManifest - add limits for getRange and transactions for resilency with large manifest 2022-11-14 20:09:44 -08:00
Meng Xu 68eb129c71 RocksDB:Use knob to control readValueTimeout value in simulation 2022-11-14 16:24:28 -08:00
Meng Xu b699ba4c23 Increase memtable and writebuffer size for rocksdb simulation test
memtable and writebuffer size are too small in simualtion, which causes
thousands of sst files and at least 6 levels of ssts.
Both makes compaction slower in simulation and contribute to timeout errors.

After increasing the size, failure rate (timeout failures) when we only run rocksdb and
sharded rocksdb engines in simulation drops from 10 out of 332339 tests to 10 out of 497532 tests.

For apple dev who wants to look into the joshua details,
before the change, joshua ensemble id is 20221111-223720-mengxudebugrocks-505ede1c55664ddf
after the change, joshua ensemble id is 20221114-192042-mengxurocksdebugknobchange-1e4c047d112e9a38
2022-11-14 16:24:15 -08:00
Xiaoxi Wang 89b3862497 fix randomKeyBetween bug 2022-11-14 15:10:33 -08:00
Ankita Kejriwal b0d6b32ee1 Merge branch 'main' of github.com:apple/foundationdb into commitproxies 2022-11-14 13:11:30 -08:00
Xiaoxi Wang f997e73758 rename variable and solve some light comments 2022-11-14 13:11:27 -08:00
Ankita Kejriwal 05c914d85f Incorporate code review suggestions 2022-11-14 13:06:27 -08:00
Jon Fu 25e1721e75 Merge branch 'main' of github.com:apple/foundationdb into tenant-list-filter 2022-11-14 12:30:28 -08:00
Kevin Hoxha 47a8cebfb3 ddsketch: Make sure that all ctors use 0 < error < 1 2022-11-14 11:41:06 -08:00
Hui Liu 73d3e0f42f
Merge pull request #8775 from sfc-gh-huliu/bench
Add micro-benchmark for blob delta serialization
2022-11-14 11:37:39 -08:00
Steve Atherton 2b133e5bd1
Merge pull request #8797 from sfc-gh-satherton/pml-delay
Another ProrityMultiLock refactor and re-add StorageServer priority read locking without perf regression
2022-11-14 11:30:01 -08:00
Sam Gwydir 34b8c5eb2b ENCRYPT_KEY_CACHE_LOGGING_SAMPLE_SIZE -> ENCRYPT_KEY_CACHE_LOGGING_SKETCH_ACCURACY 2022-11-14 10:47:45 -08:00
Sam Gwydir 4783e9fd72 fix types 2022-11-14 09:49:58 -08:00
Markus Pilman f105cb1809 Merge remote-tracking branch 'origin/main' into bugfixes/machines-attrition-debugging 2022-11-14 10:11:52 -07:00
Trevor Clinkenbeard 7d5d94f09b
Merge pull request #8804 from sfc-gh-akejriwal/monitorusage
Add a command to clear storage quota
2022-11-13 06:38:15 -08:00
Nim Wijetunga a1a2839cb3
Revert "Extend Transaction Window during Restore in Simulation" (#8806)
* fix resolver bug

* trigger build
2022-11-12 15:24:30 -08:00
Sam Gwydir 7f33b0fa70 clang-format 2022-11-12 14:09:31 -08:00
Sam Gwydir 7ea42841a4 Merge remote-tracking branch 'origin/main' into ddsketch 2022-11-12 13:52:57 -08:00
Sam Gwydir 23706c957b Use DDSketch for Sample Data. 2022-11-12 13:45:46 -08:00
Steve Atherton d61b88e6b3 Bug fix, Redwood's ioLock was not a Reference<>. Renamed several knobs, functions, and Redwood metrics for clarity. 2022-11-11 20:07:48 -08:00
Ankita Kejriwal 8bc9a2bffd Add a command to clear storage quota 2022-11-11 17:59:54 -08:00
Ankita Kejriwal dcbe51f24e Merge branch 'main' of github.com:apple/foundationdb into commitproxies 2022-11-11 17:28:01 -08:00
Ankita Kejriwal 2e4cd67fb8 Add a transaction option to bypass storage quota enforcement.
This can be used for transactions that only delete data to allow them to
commit even if the tenant group is over its storage quota.
2022-11-11 16:54:35 -08:00
Hao Fu b7629ce56e
store and reset original Knob value in GetMappedRange test (#8800) 2022-11-11 15:20:26 -08:00
Hao Fu 7e78795284
add bytelimit for prefetch (#8768)
* add bytelimit for prefetch

A fraction of byteLimit will be used as the limit to fetch index.
For the indexes fetched, fetch records for them in batch.

byteLimit always count the index size, it also count record if exist,
it at least return 1 index-record entry and always include the last entry
despite that adding the last entry despite it might exceed limit.

There is a Knob STRICTLY_ENFORCE_BYTE_LIMIT, when it is set, records
will be discarded once the byteLimit is hit, despite they are fetched.
Otherwise, return the whole batch.
2022-11-11 13:36:06 -08:00
Ankita Kejriwal 314c0b8c9b
Merge pull request #8787 from sfc-gh-akejriwal/monitorusage
Add a knob to enable/disable storage quota enforcement
2022-11-11 13:25:42 -08:00
Trevor Clinkenbeard cfd8396c8c
Merge pull request #8786 from sfc-gh-akejriwal/tenantgroup
Update the storage quota mechanisms to set quota on tenant groups instead of tenants
2022-11-11 13:12:28 -08:00
Kevin Hoxha 2efb828901 This is a combination of 2 commits.
msgpack: Refactor msgpack encoding in tracing to be reusable across different parts of fdb
2022-11-11 12:08:20 -08:00
Steve Atherton e5e4457c6e Merge commit '8ad98dc9db2a1f9c3c1b44b22e0532bfa8c89ee5' into pml-delay
# Conflicts:
#	fdbserver/storageserver.actor.cpp
2022-11-11 11:49:31 -08:00
Hui Liu 036b6ac4df
Merge pull request #8699 from sfc-gh-huliu/cli2
Add fdbcli blobrestore to start the full restore
2022-11-11 09:23:31 -08:00
Hui Liu 0f8e5af5cf Add micro-benchmark for blob delta serialization 2022-11-11 09:22:11 -08:00
Hui Liu 5834517570 Add fdbcli blobrestore to start the full restore 2022-11-11 08:32:23 -08:00
Xiaoxi Wang b79268326a Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/dataApi 2022-11-11 08:29:22 -08:00
Steve Atherton d7b7af9e98 Change default read priority configuration to use a separate priority level per ReadType because the PriorityMultiLock now supports more priority ids with less overhead. 2022-11-11 00:02:47 -08:00
Ankita Kejriwal 3b4e0056a7 Add a knob to enable/disable storage quota enforcement 2022-11-10 19:35:21 -08:00
Xiaoge Su c489dbcb26 Disable forwarding log of RocksDB to FDB by default 2022-11-10 18:58:19 -08:00
Ankita Kejriwal abc4b45af1 Set the storage quota on tenant groups instead of tenants
Update all the relevant data structures and monitors accordingly.
2022-11-10 18:56:43 -08:00
Jon Fu 55367daf28 Merge branch 'main' of github.com:apple/foundationdb into tenant-list-filter 2022-11-10 14:29:32 -08:00
Jon Fu 93fb151e6c add fdbcli error handling, remove invalid state and change some offset logic 2022-11-10 14:29:01 -08:00
Xiaoxi Wang ac923cfbcd add knobs; make ppw wait for byte load balance 2022-11-10 12:25:51 -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
Ankita Kejriwal 76733ddde6 Merge branch 'main' of github.com:apple/foundationdb into commitproxies 2022-11-09 19:09:06 -08:00
Ankita Kejriwal 8b489be340 Handle future_version() in tenantaware storage metrics function 2022-11-09 17:50:04 -08:00
Ankita Kejriwal 105648b888 Merge branch 'main' of github.com:apple/foundationdb into commitproxies 2022-11-09 17:38:30 -08:00
Xiaoxi Wang 93daa9ebb7 Merge branch 'main' of https://github.com/apple/foundationdb into fix/main/restoreStats 2022-11-09 16:30:41 -08:00
Xiaoxi Wang 3fb12680e3 revert the mvccStorageBytes for write sample change and mark it with FIXME 2022-11-09 13:15:46 -08:00
sfc-gh-tclinkenbeard 53444d835b Merge remote-tracking branch 'origin/main' into combine-gtt-knobs 2022-11-09 12:46:46 -08:00
He Liu 34da5e25a2
Allow multiple keyranges in CheckpointRequest. (#8743)
* Allow multiple keyranges in CheckpointRequest.
Include DataMove ID in CheckpointMetaData.

* Use UID dataMoveId instead of Optional<UID>.

Co-authored-by: He Liu <heliu@apple.com>
2022-11-09 11:18:58 -08:00
Jon Fu 631538537f Merge branch 'main' of github.com:apple/foundationdb into tenant-list-filter 2022-11-09 10:45:45 -08:00
Jon Fu f08b2b86d9 remove readthrough and have minimum limit for the getRange 2022-11-09 10:45:19 -08:00
Xiaoxi Wang 0a1976202a Merge branch 'main' of https://github.com/apple/foundationdb into fix/main/restoreStats 2022-11-08 16:14:08 -08:00
Jingyu Zhou b25f9f915e
Merge pull request #8742 from sfc-gh-tclinkenbeard/increase-gtt-folding-time
Increase default `GLOBAL_TAG_THROTTLING_FOLDING_TIME` value
2022-11-08 15:41:15 -08:00
Xiaoxi Wang 4727449ef0 Merge branch 'main' of https://github.com/apple/foundationdb into fix/main/restoreStats 2022-11-08 15:35:15 -08:00
Xiaoxi Wang d0a267d06a pass the workload test and adding more debugging information 2022-11-08 15:35:04 -08:00
Josh Slocum baa35fbc8f
Blob single part upload (#8703)
* Exposing writeEntireFile up through BackupContainerFileSystem, and using it in blob worker

* Adding blob worker latency metrics

* avoid writeEntireFile if object is too large

* gracefully falling back to multi-part upload if the file is too big
2022-11-08 17:30:01 -06:00
sfc-gh-tclinkenbeard 81dc1a9491 Addressed review comments 2022-11-08 14:46:03 -08:00
Markus Pilman 2e7385891a fix formatting 2022-11-08 15:26:28 -07:00
Nim Wijetunga 8bd5f362a5
Extend Transaction Window during Restore in Simulation (#8729)
* fix bug

* fix formatting
2022-11-08 11:53:36 -08:00
sfc-gh-tclinkenbeard 39330c6afa Increase default GLOBAL_TAG_THROTTLING_FOLDING_TIME 2022-11-08 10:02:24 -08:00
Xiaoxi Wang 317f0e9efe finish workload PerpetualWiggleStatsWorkload 2022-11-08 08:14:21 -08:00
sfc-gh-tclinkenbeard ca572f58fb Combine *_COST_BYTE_FACTOR knobs into a single TAG_THROTTLING_PAGE_SIZE knob 2022-11-08 07:44:01 -08:00
neethuhaneesha ca33fe1f1e
Rocksdb stats level knob. (#8711) 2022-11-07 22:32:48 -08:00
Ankita Kejriwal f503ac022a
Merge pull request #8706 from sfc-gh-tclinkenbeard/throughput-quota-cleanup
Make `GlobalTagThrottler` minimum average transaction cost equal to one page
2022-11-07 16:40:42 -08:00
Xiaoxi Wang fa72f2ef96 fix system access option 2022-11-07 16:13:17 -08:00
He Liu d28187ca90
Do not set timeout for RocksDB reads in simulation. (#8716)
* Do not set timeout for RocksDB reads in simulation.

* Cleanup.

* Ignore validateStorage test.
2022-11-07 15:59:52 -08:00
Ankita Kejriwal 7dde2a755b Reject transactions if the tenant is over quota 2022-11-07 15:59:26 -08:00
Xiaoxi Wang c4d9a81d95 fix resetStats() bug 2022-11-07 13:25:57 -08:00
Xiaoxi Wang 09f77a785f add PrimaryRegion boolean 2022-11-07 12:58:14 -08:00
Xiaoxi Wang e321044310 make template method accomodate multi-thread transaction 2022-11-07 10:32:20 -08:00
He Liu bffa838398
Checkpoint restore with shard (#8667)
* Added SSPhysicalShard.

* Update physicalShards in StorageServer::addShard().

* Handle notAssigned shard.

* fetchKeys() are not stopped during TerminateStorageServer since
physicalShards are not cleared.

* Fixed addingSplitLeft unset shardId.

* Increased the timeout for Rocks reads in simulation.

* Cleanup.

* set SERVE_AUDIT_STORAGE_PARALLELISM to 1.

* Disabled ValidateStorage test.

* Resolved comments.

Co-authored-by: He Liu <heliu@apple.com>
2022-11-07 10:02:35 -08:00
Jingyu Zhou 0adcd92d33
Merge pull request #8461 from hfu94/id
Each getRange request in a txn has a distinct trace id
2022-11-07 09:34:22 -08:00
Jingyu Zhou 8a8f0994b5
Merge pull request #8675 from sfc-gh-anoyes/anoyes/explain-4.3
Explain where 4.3 comes from for PTree finger length explanation
2022-11-07 09:27:21 -08:00
Jingyu Zhou 8999c4af16
Merge pull request #8707 from sfc-gh-jslocum/fix_aws_sdk
fixing build vs with that caused compiling aws sdk to not work properly
2022-11-07 09:13:30 -08: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
Xiaoxi Wang 03a9dd009a fix compilation errors 2022-11-06 22:46:54 -08:00
Zhe Wu 32bc9b6ebb Fix a race condition between batched peek and pop, where the server removal pop may be lost 2022-11-04 15:05:37 -07:00
Josh Slocum 21dba9ea99 fixing build vs with that caused compiling aws sdk to not work properly 2022-11-04 15:12:06 -05:00
A.J. Beamon ec088c98c1 Merge branch 'main' into fix-ub-in-keyafter 2022-11-04 11:46:29 -07:00
Josh Slocum bed057e2d3
moving fdbblob in sim folder for simulations (#8701) 2022-11-04 13:26:44 -05:00
sfc-gh-tclinkenbeard 8285b297ef Set minimum average cost to 1 page in GlobalTagThrottler 2022-11-04 11:22:44 -07:00
A.J. Beamon 248d4e95dd Don't copy an empty string in keyAfter and singleKeyRange 2022-11-04 10:02:35 -07:00
Xiaoxi Wang 8e6a9730ea move StorageWiggleMetrics out; add workload; try to fix the restore/reset bug (not test) 2022-11-03 23:42:44 -07:00
Ankita Kejriwal 27246dd4e6 Merge branch 'main' of github.com:apple/foundationdb into commitproxies 2022-11-03 18:11:56 -07:00
Ankita Kejriwal cd7e5fad00 Fetch the list of tenants over storage quota onto commit proxies from DD 2022-11-03 17:53:42 -07:00
Josh Slocum 647c6487b4
add client cache size blob metadata latency metrics (#8484) 2022-11-03 16:43:30 -05:00
Josh Slocum d68cd3493e
making read caching configurable for blob store (#8607) 2022-11-03 16:42:46 -05:00
Josh Slocum 494dd1c5ed
switch bg file data chunks to be serialized with binary writer instead of object writer (#8535) 2022-11-03 16:42:36 -05:00
Trevor Clinkenbeard f68d3e69bc
Merge pull request #8676 from sfc-gh-akejriwal/monitorusage
Enable `DD_TENANT_AWARENESS_ENABLED` randomly in testing to add test coverage
2022-11-03 13:18:25 -07:00
Andrew Noyes ecb5b5a9ca
Improve keyAfter, singleKeyRange, and an arena usage (#8674)
* Fix a potential memory error

The returned KeyRef should live at least as long as the supplied arena

* Improve keyAfter and singleKeyRange

Avoid duplicating the keyAfter implementation, and share memory between
begin and end for singleKeyRange returning a standalone

* Avoid creating and destroying an arena in a loop

This defeats some of the purposes of Arena's, namely to amortize the
cost of calling malloc and free and to improve cache locality.

* Improve Arena usage

Avoid an arena allocation in keyAfter - instead return a string with
static lifetime. I made sure to return the same memory as was just
brought into cache to inspect whether key == \xff\xff.

Also avoid creating and destroying an arena in a loop for encrypting
idempotency id sets.
2022-11-03 12:33:48 -07:00
Ankita Kejriwal 412d237761 Merge branch 'main' of github.com:apple/foundationdb into monitorusage 2022-11-03 11:55:38 -07:00
Jon Fu 8ef0411b32 address code review comments and introduce offset parameter 2022-11-03 11:39:39 -07:00
Ata E Husain Bohra a7d123643d
Extend Tlog persistentStorage to persist encryption state (#8344)
* Extend Tlog persistentStorage to persist encryption state

Description

 diff-3: Address review comment.
 diff-2: Extend ClusterController endpoints to allow query
         cluster's encryptionAtRest status
         Update Tlog recovery to ensure on-disk encryption
         status matches with cluster's cstate persisted
         encryptionAtRest
 diff-1: Store encryptionAtRestMode state in Coordinators

Major changes proposed are:
1. Extend TLog persistentStorage to persist encryption state
2. Encryption state persisted is derived from corresponding
db-config and relevant SERVER_KNOBS. In near future, knobs
shall be removed.
3. On TLog startup, the persisted encryption state is compared
against cluster configuration, if mismatch, the TLog is killed
and not allowed to rejoin the cluster.

Testing

devRunCorrectness - 100K
2022-11-03 11:16:50 -07:00
neethuhaneesha 1daa346cb4
Adding boundaries to rocksdb read iterator pool. (#8584) 2022-11-03 10:26:47 -07:00
Hui Liu 15625da4ce
Merge pull request #8662 from sfc-gh-huliu/advanceversion
BlobMigrator: Advance version and Report data copy progress
2022-11-03 10:02:53 -07:00
A.J. Beamon 3dc43976e4
Merge pull request #8669 from sfc-gh-ajbeamon/fix-tenant-not-found-on-locked-database
Fix tenant not found on locked database
2022-11-03 08:52:44 -07: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
Ankita Kejriwal e20d0946f9 Enable DD_TENANT_AWARENESS_ENABLED randomly in testing to add test coverage. 2022-11-02 17:37:15 -07:00
Andrew Noyes 7335926960 Explain mysterious 4.3 factor 2022-11-02 17:27:48 -07:00
Hui Liu f09e995ebb blob migrator: advance version and report data copy progress 2022-11-02 16:00:22 -07:00
A.J. Beamon 93142e2c29 In try commit, wait for the read version future before waiting for the commit cost estimate. This allows us to give precedence to the database_locked error over errors thrown by the commit cost estimation. 2022-11-02 14:47:24 -07:00
Xiaoxi Wang b8baf19634 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/dataApi 2022-11-02 13:46:58 -07:00
Ankita Kejriwal 18652d30cf Merge branch 'main' of github.com:apple/foundationdb into monitorusage 2022-11-02 12:20:30 -07:00
Ankita Kejriwal e24ad937b5 Merge branch 'main' of github.com:apple/foundationdb into monitorusage 2022-11-02 11:24:27 -07:00
A.J. Beamon fc8929cde7 During a restore, the tenant map may not be self-consistent. For example, it is possible for a tenant to exist with two names if it was renamed during a backup. This updates the tenant maps in SS and CP to allow there to be multiple tenants with the same ID, but it expects there to only be one such tenant once the restore is complete and the data is accessed. 2022-11-02 09:05:31 -07:00
Markus Pilman 54b1dfe8f7 Merge remote-tracking branch 'origin/main' into bugfixes/machines-attrition-debugging 2022-11-02 08:27:47 -06:00
Jingyu Zhou 89857c4be0 Merge branch 'main' of https://github.com/apple/foundationdb into fix-head 2022-11-01 20:25:41 -07:00
Ankita Kejriwal ffbd81cfcf Merge branch 'main' of github.com:apple/foundationdb into monitorusage 2022-11-01 16:51:27 -07:00
Jingyu Zhou c127bb1c30 Fix some clang warnings on unused variables 2022-11-01 15:38:47 -07:00
Xiaoxi Wang 7442cfa2cb format code 2022-11-01 14:56:55 -07:00
Xiaoxi Wang 55a3db82b5 update the name, comment and discription of write byte sampling; update the calculation of write bandwidth metrics 2022-11-01 14:56:55 -07:00
Xiaoxi Wang 11b2c035c0 add unit test for randomKeyBetween 2022-11-01 14:56:55 -07:00
Xiaoxi Wang 334fced572 add data api implementations; add more realistic fetchKey implementation; finish randomKeyBetween implementation 2022-11-01 14:56:55 -07:00
Markus Pilman f1fea14255 Merge remote-tracking branch 'origin/main' into bugfixes/machines-attrition-debugging 2022-11-01 13:51:35 -06:00
sfc-gh-tclinkenbeard 80ee79e39b Merge remote-tracking branch 'origin/main' into debug 2022-11-01 12:37:27 -07:00
sfc-gh-tclinkenbeard 047578b3d9 Merge remote-tracking branch 'origin/main' into debug 2022-11-01 12:05:45 -07:00
sfc-gh-tclinkenbeard 5fd8d05810 Make PROXY_MAX_TAG_THROTTLE_DURATION a server knob 2022-11-01 11:00:45 -07:00
Xiaoge Su 520a14cd72 fixup! update code per comments 2022-11-01 10:36:25 -07:00
Trevor Clinkenbeard 39abc712b0
Merge pull request #8549 from sfc-gh-tclinkenbeard/expose-txn-cost
Create `fdb_transaction_get_total_cost` function
2022-11-01 08:14:57 -07:00
Nim Wijetunga 24ce8c0fd0
Commit Proxy Encryption Code Probes (#8618)
* add commit proxy encryption code probes

* fix comment

* address pr comments

* address pr comments

* address pr comments

* address pr comments

* Trigger Build
2022-10-31 20:04:42 -07:00
Ankita Kejriwal 6fa5059521 Tweak where TenantInfo is initialized in metrics functions in NativeAPI
Also clean up debug trace events
2022-10-31 16:48:06 -07:00
Ankita Kejriwal b1a2239612 Increase the value of `UNKNOWN_TENANT_RETRY_DELAY` 2022-10-31 16:46:38 -07:00
Trevor Clinkenbeard fdd2f24174
Fix comment in NativeAPI.actor.h
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2022-10-31 14:48:13 -07:00
Dennis Zhou f7b608e53f blob: refactor blob get tenant code 2022-10-31 10:37:36 -07:00
Dennis Zhou 1ab432e49d blob: fix error propagation in getBlobRanges()
Fixes: 48d6e725c2 ("blob: convert listBlobbifiedRangesActor() to take a Transaction")
2022-10-31 10:37:36 -07:00
sfc-gh-tclinkenbeard 0eb1598afa Merge remote-tracking branch 'origin/main' into expose-txn-cost 2022-10-30 09:36:37 -07:00
sfc-gh-tclinkenbeard 1d6bd0057b Merge remote-tracking branch 'origin/main' into add-tag-throttling-latency-bands 2022-10-29 09:49:37 -07:00
Jingyu Zhou 22293ebac5
Merge pull request #8614 from neethuhaneesha/clearRanges
Enable clear range eager reads knob for rocksdb.
2022-10-28 17:03:39 -07:00
Steve Atherton b3017ae330
Merge pull request #8577 from sfc-gh-satherton/storageserver-pml
Unrevert #7578 - new PriorityMultiLock and StorageServer read prioritization.
2022-10-28 16:04:44 -07:00
Ankita Kejriwal 82ab299788 Merge branch 'main' of github.com:apple/foundationdb into monitorusage 2022-10-28 15:42:27 -07:00
He Liu 7bb823edbe
Replace KeyRange with std::vector<KeyRange> in DataMoveMetaData and (#8591)
* Replace KeyRange with std::vector<KeyRange> in DataMoveMetaData and
CheckpointMetaData.

* Checked if ranges.empty().

* fmt.

* Resolved some comments.

Co-authored-by: He Liu <heliu@apple.com>
2022-10-28 15:22:55 -07:00
neethuhaneesha 55fc0c1a0b Enable clear range eager reads knob for rocksdb. 2022-10-28 14:30:05 -07:00
Steve Atherton 326d45819e Merge branch 'main' into storageserver-pml 2022-10-28 14:14:44 -07:00
Ankita Kejriwal ba382169d1 Handle `unknown_tenant` error in metrics functions in NativeAPI 2022-10-28 13:37:40 -07:00
Jon Fu d95eb4dd71 Merge branch 'main' of github.com:apple/foundationdb into tenant-list-filter 2022-10-28 10:00:42 -07:00
Andrew Noyes 0a15f081a1
Proactively clean up idempotency ids for successful commits (#8578)
* Proactively clean up idempotency ids for successful commits

This change also includes some minor changes from my branch working on
an idempotency ids cleaner, that I'd like to get merged sooner rather
than later.

- Adding a timestamp to idempotency values
- Making IdempotencyId an actor file
- Adding commit_unknown_result_fatal
- Checking idempotencyIdsExpiredVersion in determineCommitStatus
- Some testing QOL changes

* Factor out decodeIdempotencyKey logic

* Fix formatting

* Update flow/include/flow/error_definitions.h

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

* Use KeyBackedObjectProperty for idempotencyIdsExpiredVersion

* Add IDEMPOTENCY_ID_IN_MEMORY_LIFETIME knob

* Rename ExpireIdempotencyKeyValuePairRequest

Also add a code probe for the case where an ExpireIdempotencyIdRequest is
received before the count is known, and add an assert

* Fix formatting and add TODO for nwijetunga

Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2022-10-28 09:07:54 -07:00
Steve Atherton d53ed6acae Merge branch 'main' into storageserver-pml 2022-10-28 00:14:01 -07:00
Jingyu Zhou dc60f63f9b Revert "Cancel watch when the key is not being waited"
This reverts commit 639afbe62c.
2022-10-27 19:46:05 -07:00
Jingyu Zhou 634bd529e7 Revert "Record the version of each watch"
This reverts commit 4bd24e4d64.
2022-10-27 19:46:05 -07:00
Jingyu Zhou 19ae4e7eb7 Revert "Reformat source"
This reverts commit ec47c261bf.
2022-10-27 19:46:05 -07:00
Jingyu Zhou e460933b52 Revert "Remove debugging output"
This reverts commit 41d1d6404d.
2022-10-27 19:46:05 -07:00
Jingyu Zhou e7fd3eda00 Revert "Update fdbclient/NativeAPI.actor.cpp"
This reverts commit 812243bafa.
2022-10-27 19:46:05 -07:00
Steve Atherton 1dad43cb06 Remove unnecessary change feed disk read lock as its functionality is obsoleted by the storage server read priority lock. 2022-10-27 18:03:14 -07:00
Steve Atherton f9ad7fb35b Merge origin/main into storageserver-pml 2022-10-27 18:00:11 -07:00
Steve Atherton 848e80c08b Add comment. 2022-10-27 17:52:56 -07:00
sfc-gh-tclinkenbeard 6ae0aac153 Merge remote-tracking branch 'origin/main' into add-tag-throttling-latency-bands 2022-10-27 14:07:51 -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
Lukas Joswiak a8f8757f77 Rename cluster ID key
In FDB 7.1, this key was stored in the txnStateStore. In 7.2, it has
been moved to the database. This was causing protocol compatibility
issues during upgrades, so we need to rename the key.
2022-10-27 13:56:13 -07:00
Lukas Joswiak bba05b7c9b Move cluster ID from txnStateStore to the database
The cluster ID is now stored in the database instead of in the
txnStateStore. The cluster controller will read it on boot and send it
to all processes to persist.
2022-10-27 13:56:13 -07:00
Lukas Joswiak 5ca2b89bdf Fix simulation issue where process switch was ignored
The simulator tracks only active processes. Rebooted or killed processes
are removed from the list of processes, and only get added back when the
process is rebooted and starts up again. This causes a problem for the
`RebootProcessAndSwitch` kill type, which wants to simultaneously reboot
all machines in a cluster and change their cluster file. If a machine is
currently being rebooted, it will miss the reboot process and switch
command.

The fix is to add a check when a process is being started in simulation.
If the process has had its cluster file changed and the cluster is in a
state where all processes should have had their cluster files reverted
to the original value, the simulator will now send a
`RebootProcessAndSwitch` signal right when the process is started. This
will cause an extra reboot, but should correctly switch the process back
to its original, correct cluster file, allowing the cluster to fully
recover all clusters.

Note that the above issue should only affect simulation, due to how the
simulator tracks processes and handles kill signals.

This commit also adds a field to each process struct to determine
whether the process is being run in a DR cluster in the simulation run.
This is needed because simulation does not differentiate between
processes in different clusters (other than by the IP), and some
processes needed to switch clusters and some simply needed to be
rebooted.
2022-10-27 13:56:13 -07:00
Xiaoge Su 812243bafa Update fdbclient/NativeAPI.actor.cpp
Co-authored-by: Jingyu Zhou <jingyuzhou@gmail.com>
2022-10-27 12:42:05 -07:00
Xiaoge Su 41d1d6404d Remove debugging output 2022-10-27 12:42:05 -07:00
Xiaoge Su ec47c261bf Reformat source 2022-10-27 12:42:05 -07:00
Xiaoge Su 4bd24e4d64 Record the version of each watch
In the case
    1. A watch to key A is set, the watchValueMap ACTOR, noted as X, starts waiting.
    2. All watches are cleared due to connection string change.
    3. The watch to key A is restarted with watchValueMap ACTOR Y.
    4. X receives the cancel exception, and tries to dereference the counter. This causes Y gets cancelled.

the reference count will cause watch prematurely terminate. Recording
the versions of each watch would help preventing this issue
2022-10-27 12:42:05 -07:00
Xiaoge Su 639afbe62c Cancel watch when the key is not being waited
Currently, there is a cyclic reference situation in

    DatabaseContext -> WatchMetadata -> watchStorageServerResp ->
    DatabaseContext

If there is a watch created in the DatabaseContext, even the
corresponding wait ACTOR is cancelled, the WatchMetadata will still hold
a reference to watchStorageServerResp ACTOR, which holds a reference to
DatabaseContext.

In this situation, any DatabaseContext who held a watch will not be
automatically destructed since its reference count will never reduce to
0 until the watch value is changed. Every time the cluster recoveries,
several watches are created, and when the cluster restarts, the
DatabaseContext which not being used, will not be able to destructed due
to these watches.

With this patch, each wait to the watch will be counted. Either the
watch is triggered or cancelled, the corresponding count will be
reduced. If a watch is not being waited, the watch will be cancelled,
effectively reduce the reference count of DatabaseContext. This will
hopefully fix the issue mentioned above.

The code is tested by 1) Manually change the number of logs of a local
cluster, see the cluster recovery and previous DatabaseContext being
destructed; 2) 100K joshua run, with 1 failure, the same test will fail
on the current git main branch.
2022-10-27 12:42:05 -07:00
Jingyu Zhou fe66c026b4
Merge pull request #8598 from jzhou77/fix
Fix restarting restore test failure
2022-10-27 10:44:17 -07:00
Josh Slocum 4d3553481f
Blob connection provider test (#8478)
* Refactoring test blob metadata creation

* Implementing BlobConnectionProviderTest

* createRandomTestBlobMetadata supports blobstore and works outside simulation
2022-10-27 10:44:06 -05:00
Jingyu Zhou 6c0f890f78 Fix restarting restore test failure
Old fdbserver may not set the "enableSnapshotBackupEncryption" key, thus we
should allow the key to be not present.
2022-10-27 08:43:55 -07:00
Steve Atherton 56abec32f1 Bug fix: The change feed request UID is actually not just for debugging and can't be shared across requests, so the debugID in ReadOptions should not be used. Restored the original ChangeFeedRequest member but renamed it from debugUID to just id. 2022-10-26 20:45:39 -07:00
Steve Atherton fb44945a89 Use id variable to simplify logic a bit. 2022-10-26 17:35:39 -07:00
Jon Fu 886c286297 Merge branch 'main' of github.com:apple/foundationdb into tenant-list-filter 2022-10-26 15:01:46 -07:00
Jon Fu b17c3fecbb add invalid tenant state and assertion in metacluster consistency 2022-10-26 14:37:00 -07:00
Markus Pilman 83c86a9453 Merge remote-tracking branch 'origin/main' into bugfixes/machines-attrition-debugging 2022-10-26 15:15:57 -06:00
Ankita Kejriwal 438cfea294 Send list of tenants over storage quota to commit proxies 2022-10-26 13:34:12 -07:00
Dennis Zhou deeedfc3f8
Merge pull request #8537 from sfc-gh-dzhou/unblob
blob: allow purge ranges to begin and end in unblobbified regions
2022-10-26 11:11:09 -07:00
Nim Wijetunga 6f37f55917
Restore System Keys First in Backup/Restore Workloads (#8475)
* system key restore ordering

* restore system keys before regular data

* atomic restore backup fix

* change testing

* fix compile error

* fix compile issue

* fix compile issues

* Trigger Build

* only split restore if encryption is enabled

* revert knob changes

* Update fdbserver/workloads/AtomicSwitchover.actor.cpp

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

* Update fdbserver/workloads/AtomicSwitchover.actor.cpp

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

* Update fdbserver/workloads/BackupCorrectness.actor.cpp

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

* Update fdbserver/workloads/AtomicRestore.actor.cpp

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

* add todo

* strengthen check

* seperate system restore for atomic restore

* address pr comments

* address pr comments

Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2022-10-26 09:38:27 -07:00
Josh Slocum ab6953be7d
Blob Granule read-driven compaction (#8572) 2022-10-26 09:02:50 -07:00
Markus Pilman 2eaf674faa Merge remote-tracking branch 'origin/main' into bugfixes/machines-attrition-debugging 2022-10-26 09:33:54 -06:00
Marian Dvorsky 3c5d3f7a94
Fix SpanContext for GP:getLiveCommittedVersion (#8565)
* Fix SpanContext for GP:getLiveCommittedVersion
2022-10-26 16:29:28 +02:00
Steve Atherton c2cacb4123 Added ReadOptions and read lock support support to ChangeFeed requests and used its DebugID to replace the streamUID. Refactored read lock and read options usage in Storage Server to simplify code and handle ReadOptions to Priority conversion in a single place, fixed a few bugs along the way. Set CacheResult to False for requests created by fetchKeys(). 2022-10-26 01:32:45 -07:00
sfc-gh-tclinkenbeard 8cf87c2580 Add latencyBandsMap to GrvProxyTransactionTagThrottler 2022-10-25 17:37:26 -07:00
Xiaoxi Wang bb0236433c
Merge pull request #8540 from sfc-gh-xwang/feature/main/storageMetrics
Make MockStorageServer serve StorageMetrics related request
2022-10-25 17:29:21 -07:00
Xiaoxi Wang 36d9de9072 change UNREACHABLE to ASSERT(false); change function name 2022-10-25 15:43:24 -07:00
Steve Atherton 89d3d6f67b Merge origin/main into storageserver-pml 2022-10-25 15:08:44 -07:00
sfc-gh-tclinkenbeard e8e7c873d8 Merge remote-tracking branch 'origin/main' into reject-tag-throttled-txns 2022-10-25 14:28:55 -07:00
Trevor Clinkenbeard 25f3a99b3d
Merge pull request #8568 from sfc-gh-tclinkenbeard/make-tracecounters-method
Encapsulate `CounterCollection`
2022-10-25 14:27:56 -07:00
sfc-gh-tclinkenbeard 1c119be26d Merge remote-tracking branch 'origin/main' into expose-txn-cost 2022-10-25 13:50:43 -07:00
sfc-gh-tclinkenbeard 49933375e1 Addressed review comments 2022-10-25 13:50:10 -07:00
sfc-gh-tclinkenbeard 31a48f4046 Disable GLOBAL_TAG_THROTTLING by default 2022-10-25 13:10:15 -07:00
Jon Fu f21fcf67ce initial commit to allow tenant list filtering in metacluster 2022-10-25 12:01:29 -07:00
sfc-gh-tclinkenbeard f339819758 Merge remote-tracking branch 'origin/main' into reject-tag-throttled-txns 2022-10-25 11:59:35 -07:00
Xiaoxi Wang 5a8adca1f7 solve review comments: mark const; add comments; template abbreviation 2022-10-25 10:56:24 -07:00
sfc-gh-tclinkenbeard 74212eeacf Encapsulate CounterCollection 2022-10-25 10:17:15 -07:00
Steve Atherton 27dc180b68 Merge commit '0ae568a872e474c8c755e648efbbe4524e63e445' into storageserver-pml
# Conflicts:
#	fdbserver/VersionedBTree.actor.cpp
2022-10-24 22:31:36 -07:00
Ankita Kejriwal ce733cd1a1
Merge pull request #8538 from sfc-gh-akejriwal/monitorusage
Add functionality to get tenants over storage quota and improve the relevant monitors
2022-10-24 16:28:07 -07:00
Hui Liu e2dc50d220
Merge pull request #8508 from sfc-gh-huliu/storageinterf
Implement StorageServerInterface for BlobMigrator
2022-10-24 16:10:31 -07:00
Markus Pilman e7b5b870a3 Merge remote-tracking branch 'origin/main' into bugfixes/machines-attrition-debugging 2022-10-24 15:24:36 -06:00
Hui Liu f2289ced27 Add StorageServerInterface for BlobMigrator 2022-10-24 13:12:07 -07:00
Jingyu Zhou d672f91160
Merge pull request #8513 from sfc-gh-anoyes/anoyes/hide-idempotency-ids 2022-10-24 13:06:17 -07:00
Dennis Zhou 474955b10d blob: allow purge as long as it doesn't start in a range 2022-10-24 11:08:04 -07:00
Dennis Zhou 48d6e725c2 blob: convert listBlobbifiedRangesActor() to take a Transaction 2022-10-24 11:08:04 -07:00
Dennis Zhou 07f1247885 blob: getBlobRanges() use transaction instead of RYWTransaction 2022-10-24 11:08:04 -07:00
Dennis Zhou dd52d997ba blob: rename rowLimit variable for listBlobbifiedRanges() 2022-10-24 11:08:04 -07:00
Josh Slocum 2d6840ee90
fix bg stats invalid access (#8507) 2022-10-24 10:23:22 -07:00
Trevor Clinkenbeard 28ae2a7565
Merge pull request #8544 from sfc-gh-tclinkenbeard/fix-asan-failure
Fix heap-use-after-free in `TenantEntryCache::put`
2022-10-24 10:10:40 -07:00
Xiaoxi Wang e07a50573a splitStorageMetrics finish implementation (no unit test yet but 100k
test pass)
2022-10-24 09:58:41 -07:00
Xiaoxi Wang 1603926595 refactoring old waitStorageMetrics and finish MGS::waitStorageMetrics
(no unit test yet)
2022-10-24 09:58:41 -07:00
Xiaoxi Wang 70eb9aef28 simple MGS IKeyLocationService implementation 2022-10-24 09:58:41 -07:00
Andrew Noyes a299cf4bf2 Make idempotency id transaction options hidden
This feature is not ready for use by applications
2022-10-24 09:25:48 -07:00
sfc-gh-tclinkenbeard fef4c9c5b2 Remove SERVER_KNOBS->GLOBAL_TAG_THROTTLING_RW_FUNGIBILITY_RATIO 2022-10-23 20:18:21 -07:00
Steve Atherton a627df88c6 IO buffer lifetime fix, source buffer must stay alive until the file write completes. 2022-10-23 16:38:08 -07:00
Steve Atherton 344290fdf1 IO buffer lifetime fix, buf must stay alive until the file read completes. 2022-10-23 16:28:31 -07:00
sfc-gh-tclinkenbeard 32ae7bb529 Merge remote-tracking branch 'origin/main' into expose-txn-cost 2022-10-23 12:59:07 -07:00
sfc-gh-tclinkenbeard b442705dc7 Change units for tag quota enforcement from pages to bytes 2022-10-23 12:57:19 -07:00
sfc-gh-tclinkenbeard da4ceaf735 Improve code coverage for proxy-level transaction tag throttling 2022-10-23 10:39:59 -07:00
sfc-gh-tclinkenbeard 1ae98808f9 Retry on proxy_tag_throttled errors 2022-10-23 09:56:30 -07:00
sfc-gh-tclinkenbeard 71702d6ccc Fix heap-use-after-free in TenantEntryCache::put 2022-10-22 13:10:03 -07:00
sfc-gh-tclinkenbeard 04ae47b9b9 Addressed review comments 2022-10-21 22:17:33 -07:00
Nim Wijetunga 7dacaed983
add domain name asserts (#8534) 2022-10-21 17:24:27 -07:00
Ankita Kejriwal c34a23152c Change the storage quota type from unit64_t to int64_t
With this change, the storage quota will be of the same type
as the storage bytes used returned by `getEstimatedRangeSizeBytes`.
2022-10-21 16:18:52 -07:00
neethuhaneesha a1eb1d4a48
Rocksdb storage using single_key_deletes instead of deleterange on clearrange operation. (#8452) 2022-10-21 15:47:19 -07:00
Ankita Kejriwal 7647cea4e5 Improve the storage quota monitor code + add a knob for refresh interval 2022-10-21 15:44:13 -07:00
Josh Slocum 9987da5a4f
Add blob granule benchmark to track stats by varying amount of deltas, and several simple perf improvements (#8533) 2022-10-21 17:05:51 -05:00
Josh Slocum d7b88f203c
added repeatFromFiles that supports new file format (#8502) 2022-10-21 10:29:35 -05:00
Jon Fu ddd9021469
Merge pull request #8495 from sfc-gh-jfu/tenant-restarting-tests
Add support for maintaining tenant state and default tenants in restarting tests
2022-10-20 21:11:33 -07:00
Jingyu Zhou 57fc39d5b7 Make decodeKVPairs a non-actor function 2022-10-20 19:34:44 -07:00
Jon Fu 60e76ef4a7 Merge branch 'main' of github.com:apple/foundationdb into tenant-restarting-tests 2022-10-20 17:57:22 -07:00
Jingyu Zhou a8391caf23 Revert "Data loss protection v2" 2022-10-20 18:09:58 -05:00
Nim Wijetunga 2745168d72
Add Testing for LastTenantModification Field (#8509)
* add testing

* address pr comments
2022-10-20 13:38:38 -07:00
Jon Fu 3533cff94d process '_experimental' suffix in fromString helper 2022-10-20 13:38:13 -07:00
Jon Fu c6998a7185 change tenantModes option to accept array of string 2022-10-20 11:44:03 -07:00
Markus Pilman d1c80659b5 Remember disk corruptions and downgrade trace severity if a corruption was injected 2022-10-19 16:18:00 -06:00
Steve Atherton e5a5ec36a4 Merge commit '0872cbfb2f00886817f18584d95af217e28ad51d' into storageserver-pml
# Conflicts:
#	fdbserver/storageserver.actor.cpp
2022-10-19 13:25:31 -07:00
Jingyu Zhou c357a054a7
Merge pull request #8472 from sfc-gh-ljoswiak/fixes/cluster-id-v2
Data loss protection v2
2022-10-19 12:49:05 -07:00
Josh Slocum 4ad6a8030b
Fixing type in constructor (#8486) 2022-10-19 12:21:23 -07:00
Jingyu Zhou 0872cbfb2f
Fix a test timeout (#8488)
* Fix a test timeout due to buggified knob MAX_WRITE_TRANSACTION_LIFE_VERSIONS

The buggified knob MAX_WRITE_TRANSACTION_LIFE_VERSIONS can be only 1M. In some
tests, this transaction always end up commitVersion - readVersion is a little
above 1M, thus always getting transaction_too_old error.

* Change MAX_COMMIT_BATCH_INTERVAL instead

So that the master may give out versions fast enough.

* Fix an assertion failure in a unit test

48125>>8 = 187, 48125 = 0xbbfd
48128>>8 = 188, 48128 = 0xbc00
So if 48125 is chosen as the index, 48128 changes the higher order byte.

48125 & 0xff7f = 47997 = 0xbb7d. Thus +5 won't change the higher order byte.
2022-10-19 09:45:56 -07:00
Ankita Kejriwal 52cd71f87d
Merge pull request #7917 from sfc-gh-akejriwal/monitorusage
Monitor storage bytes used by tenants
2022-10-18 23:15:48 -07:00
Lukas Joswiak 9c847a20e8 Rename cluster ID key
In FDB 7.1, this key was stored in the txnStateStore. In 7.2, it has
been moved to the database. This was causing protocol compatibility
issues during upgrades, so we need to rename the key.
2022-10-18 21:37:42 -07:00
Lukas Joswiak 7342672c11 Move cluster ID from txnStateStore to the database
The cluster ID is now stored in the database instead of in the
txnStateStore. The cluster controller will read it on boot and send it
to all processes to persist.
2022-10-18 21:37:42 -07:00
Lukas Joswiak 7f889c87e3 Fix simulation issue where process switch was ignored
The simulator tracks only active processes. Rebooted or killed processes
are removed from the list of processes, and only get added back when the
process is rebooted and starts up again. This causes a problem for the
`RebootProcessAndSwitch` kill type, which wants to simultaneously reboot
all machines in a cluster and change their cluster file. If a machine is
currently being rebooted, it will miss the reboot process and switch
command.

The fix is to add a check when a process is being started in simulation.
If the process has had its cluster file changed and the cluster is in a
state where all processes should have had their cluster files reverted
to the original value, the simulator will now send a
`RebootProcessAndSwitch` signal right when the process is started. This
will cause an extra reboot, but should correctly switch the process back
to its original, correct cluster file, allowing the cluster to fully
recover all clusters.

Note that the above issue should only affect simulation, due to how the
simulator tracks processes and handles kill signals.

This commit also adds a field to each process struct to determine
whether the process is being run in a DR cluster in the simulation run.
This is needed because simulation does not differentiate between
processes in different clusters (other than by the IP), and some
processes needed to switch clusters and some simply needed to be
rebooted.
2022-10-18 21:37:42 -07:00
Nim Wijetunga d439bc1e6e
TenantEntryCache Watch Based Refresh (#8399)
* tenant modification changekey

* address pr comments

* change backup to use watch based tenant cache

* format

* address pr comments

* trigger build

* add todo

* check tenants disabled

* trigger build

* trigger build

* address pr comments

* address pr comments

* trigger build
2022-10-18 19:05:07 -07:00
Ankita Kejriwal 3d890ced9a Code cleanup 2022-10-18 15:53:22 -07:00
sfc-gh-tclinkenbeard 003986fdb0 Randomize GLOBAL_TAG_THROTTLING knob 2022-10-18 15:16:24 -07:00
sfc-gh-tclinkenbeard 300840ea2e Enable GLOBAL_TAG_THROTTLING by default 2022-10-18 15:16:24 -07:00
sfc-gh-tclinkenbeard dfc11001af Reject transactions that have been tag throttled for too long 2022-10-18 15:16:24 -07:00
Jingyu Zhou 14d13475db
Merge pull request #8437 from sfc-gh-tclinkenbeard/add-quota-clear-command
Add fdbcli "quota clear" command
2022-10-18 15:11:05 -07:00
sfc-gh-tclinkenbeard 92bbcebed9 Increase trState->totalCost by one with each clear 2022-10-18 14:05:46 -07:00
Ankita Kejriwal fb014a4834 Merge branch 'main' of github.com:apple/foundationdb into monitorusage 2022-10-18 13:14:47 -07:00
Josh Slocum 89519343a7
adding new bg read metrics to client and refactoring them into a new trace event (#8493) 2022-10-18 14:13:35 -05:00
Jingyu Zhou d45f7a088b
Merge pull request #8489 from halfprice/zhewu/debug-shard-size
Use consistencyScanInfoFetcher function and add a timeout
2022-10-17 20:28:18 -07:00
Jingyu Zhou 1b2fcdd4f6
Merge pull request #8053 from sfc-gh-akejriwal/getsizetenant
Make the storage metrics functions tenant aware
2022-10-17 20:02:52 -07:00
sfc-gh-tclinkenbeard 6bfb5c00fb Merge remote-tracking branch 'origin/main' into add-quota-clear-command 2022-10-17 17:02:42 -07:00
sfc-gh-tclinkenbeard 07cc152bf5 Merge remote-tracking branch 'origin/main' into add-quota-clear-command 2022-10-17 16:28:22 -07:00
sfc-gh-tclinkenbeard 7e4f380423 Add tests for fdbcli quota commands 2022-10-17 16:27:45 -07:00
Ankita Kejriwal 3eb41e1598 Make the `WaitMetricRequest::TenantInfo` an `Optional`. 2022-10-17 16:03:21 -07:00
Zhe Wu 5096cabc59 Fix schema error 2022-10-17 13:28:00 -07:00
Trevor Clinkenbeard cf935a1915
Merge pull request #8444 from sfc-gh-tclinkenbeard/limit-gtt-size
Limit number of tags tracked by `GlobalTagThrottler`
2022-10-17 12:23:46 -07:00
sfc-gh-tclinkenbeard 6251e8be32 Track transaction cost for range reads 2022-10-17 10:08:49 -07:00
Dennis Zhou 77e2e4a381 blob/c: tenant verifyBlobRange() c api 2022-10-17 11:42:26 -05:00