Commit Graph

22048 Commits

Author SHA1 Message Date
Marian Dvorsky 3a53ec3115
Call getTraceThreadId() before we enable allocation tracing (#7888) 2022-08-23 20:25:08 +02:00
Lukas Joswiak e705b055b0 Improve wording
Co-authored-by: Bharadwaj V.R <bharadwaj.vr@snowflake.com>
2022-08-23 10:46:59 -07:00
Lukas Joswiak 4a7122c802 Document the `three_data_hall_fallback` datacenter mode 2022-08-23 10:46:59 -07:00
Trevor Clinkenbeard 018a60f05d
Merge pull request #7931 from sfc-gh-tclinkenbeard/fix-remove-quota-ubsan-failure
Fix undefined behaviour in GlobalTagThrottler::get*Rates functions
2022-08-23 10:12:48 -07:00
Aaron Molitor ca1b606d70 move global variables into function args/local variables, build both regular and debug images by default 2022-08-23 11:43:49 -05:00
Ata E Husain Bohra 0559bd3c6f
RegisterWorker to cancel existing watcher if reusing the worker (#7949)
Description

Register worker maintain 'id_worker' map to track the worker interface
registeration, it also sets 'WorkerAvailabilityWatcher' actor to track
for failures. However, if worker is already registered but interface gets
updated, the existing code doesn't actively cancel the watcher. One possible
race condition is, old watcher detects worker failure and removes the worker
from id_worker map even before the new watcher started monitoring the new
interface. If such a scenario is hit, it trips an assert in rebootAndCheck
routine which expects the worker should be present in the id_worker map.

Patch addresses the race condition by actively cancelling existing watcher
actor before registering the new watcher actor.

Testing

devRunCorrectness - 100K
2022-08-23 09:08:24 -07:00
Hui Liu 33411fd07e
add an option to read from blob storage for moving keys (#7848) 2022-08-23 08:07:17 -05:00
Trevor Clinkenbeard 8a77769211
Merge pull request #7948 from sfc-gh-xwang/fix/sfc71.2/upgradeRkCount
Allow rk throttle reason being UNSET in RkTagThrottleCollection::incrementBusyTagCount
2022-08-22 14:09:55 -07:00
Trevor Clinkenbeard 723e5bf7f6
Update fdbserver/RkTagThrottleCollection.cpp 2022-08-22 13:00:29 -07:00
Dan Lambright a8dd6b65ec
Support HA in loopback cluster test script (#7953)
* update tag client cache on getKeyLocation

* Support HA for custom cluster test script
2022-08-22 14:33:36 -04:00
Marian Dvorsky d251fef5e9
Use -fno-sanitize=function with UBSAN as a work around (#7956) 2022-08-22 19:18:48 +02:00
sfc-gh-tclinkenbeard 4e12249778 Merge remote-tracking branch 'origin/main' into fix-remove-quota-ubsan-failure 2022-08-22 09:33:47 -07:00
Jingyu Zhou b966c4de0c
Merge pull request #7936 from sfc-gh-tclinkenbeard/increase-tlog-max-create-duration-in-simulation
Increase `TLOG_MAX_CREATE_DURATION` to 15.0 in simulation
2022-08-22 09:31:11 -07:00
Josh Slocum 98a7ec1797
Blob Granules Cleanup (#7941)
* Cleaned up BlobGranule TODO + FIXMEs and addressed some

* popping feed at correct version

* blob worker taking over a granule will pop from where previous worker left off

* addressed fixme of blob worker not re-snapshotting from old change feed

* formatting

* more change feed popped fixes after pop updates

* Getting rid of change feed parallelism lock since it can cause deadlocks in fetching, and relying on full fetch lock

* New blob worker metric and fixing old one

* server-side popped checking still doesn't work because of pops at non-mutation versions

* format
2022-08-19 17:25:31 -07:00
Zhe Wang 6afc36cc33
add splunk dashboards (#7942) 2022-08-19 20:05:37 -04:00
Xiaoxi Wang ad27426802 allow rk throttle reason being UNSET 2022-08-19 14:48:48 -07:00
Andrew Noyes f0bade0ba4
Remove a unit test which invokes undefined behavior (#7937)
The intent of this test is to show that figureVersion does something
reasonable if undefined behavior is invoked, but just invoking it is
already problematic so it's not an interesting test.
2022-08-19 14:44:33 -07:00
Josh Slocum 5059a417aa
More improved purge tests (#7923)
* Added purgeAtLatest to BlobGranuleVerifier

* Also checking for merge resnapshot/fully delete granule purge races

* error check and count for purgeAtLatest

* changing test defaults back

* adding final data check after final availability check in blob granule verifier
2022-08-19 16:22:21 -05:00
Xiaoxi Wang 0b6ef10f3a
Merge pull request #7926 from sfc-gh-xwang/refactor/main/portEnableState
[DD Testability] use txnProcessor to call removeKeysFromFailedServer and removeStorageServer
2022-08-19 13:27:57 -07:00
Zhe Wang 2ceaae4219
dd physical shard core (#7703) 2022-08-19 14:47:00 -04:00
sfc-gh-tclinkenbeard 7449dbe5c4 Increase TLOG_MAX_CREATE_DURATION to 15.0 in simulation 2022-08-19 10:35:13 -07:00
He Liu 044f43b6c0
Fix shard mapping read (#7897)
* Read full range.

* Count empty empty shards.

* Added ROCKSDB_READ_RANGE_ROW_LIMIT.

* Fixed BytesLimit issue.

* TraceEvents.

* Cleaned up comments.

Co-authored-by: He Liu <heliu@apple.com>
2022-08-19 09:33:59 -07:00
Xiaoxi Wang 26ba294fe5 solve merge conflict with upstream/main 2022-08-19 09:22:06 -07:00
sfc-gh-tclinkenbeard 489b62c29e Fix undefined behaviour in GlobalTagThrottler::get*Rates functions 2022-08-18 17:31:38 -07:00
Ankita Kejriwal f75bd100a8
Merge pull request #7623 from sfc-gh-akejriwal/tenantquota
Monitor updates to storage quota
2022-08-18 12:45:53 -07:00
Xiaoxi Wang 1aeb7b2953 call removeStorageServer and removeKeysFromFailedServer from txnProcessor 2022-08-18 11:44:27 -07:00
Ankita Kejriwal ff6fe48909
Merge branch 'main' into tenantquota 2022-08-18 10:59:00 -07:00
Josh Slocum a42e81a795
Bg bug fixes3 (#7904)
* Fixing merge boundary recovery

* fixing an edge case in blob manager repeat recruitment

* fixing a race between tenant loading and key alignment

* formatting
2022-08-18 12:42:53 -05:00
Xiaoxi Wang 52e7825179 move DataDistributionEnabled to DDTxnProcessor 2022-08-18 10:23:33 -07:00
Xiaoxi Wang 98096349e3 use ddEnabledState in DDSharedContext 2022-08-18 09:50:32 -07:00
Jingyu Zhou 41492fa7ca
Merge pull request #7906 from xis19/main
fixup! Add count to serialization in OpenDatabaseRequest::Samples
2022-08-17 15:33:56 -07:00
Xiaoxi Wang 75a52afb31
Merge pull request #7757 from sfc-gh-xwang/refactor/main/enableState
[DD Testability] Encapsulate shared states in DD into DDSharedContext
2022-08-17 13:52:27 -07:00
Josh Slocum 21298d418f
Improved purge tests (#7911)
* doing force purge at the end of the test if it didn't happen during

* better checking for granule metadata left over after purge

* retrying for in-flight granules that weren't known before purge

* letting test pass for a hard to fix purge case

* changed post-test force purge to only be after final availability check
2022-08-17 13:40:52 -07:00
Jon Fu e1af8af64f
Merge pull request #7910 from sfc-gh-jfu/jfu-buildcop-uninit-var
Initialize clientcount in opendatabaserequest
2022-08-17 14:22:15 -04:00
Yao Xiao 9c20a07d35
Add delete_obsolete_files_period_micros to RocksDB options. (#7908) 2022-08-17 11:21:21 -07:00
Jon Fu 9e5b498337 initialize clientcount in opendatabaserequest 2022-08-17 10:14:33 -07:00
Xiaoge Su 4874bb8486 Empty push to trigger GitHub build scripts 2022-08-17 07:51:16 -07:00
Steve Atherton 9a6387af70
Merge pull request #7582 from sfc-gh-yiwu/encrypt_mutation
Make encrypted mutation serialize as normal mutations
2022-08-17 01:30:51 -07:00
Xiaoxi Wang 91cff2ed47 remote .actor name 2022-08-17 00:03:05 -07:00
Xiaoxi Wang f83493355e format code 2022-08-16 23:37:55 -07:00
Xiaoxi Wang 0a15f18fa4 provide default destructor; fix other compilation problem 2022-08-16 18:28:36 -07:00
Xiaoxi Wang 8d2a326da6 add comment for DDSharedContext 2022-08-16 15:53:41 -07:00
Xiaoge Su 9338404087 fixup! Add count to serialization in OpenDatabaseRequest::Samples 2022-08-16 15:46:48 -07:00
Dennis Zhou 750c5a9ca0
Merge pull request #7835 from sfc-gh-dzhou/blobapi
blob: java bindings for various blob management functions
2022-08-16 15:11:22 -07:00
Xiaoxi Wang 8e6e4a7d1e mark usableRegions() const 2022-08-16 14:36:10 -07:00
Xiaoxi Wang e4e6cfc59f rename file 2022-08-16 14:35:19 -07:00
Xiaoxi Wang e2e5abbc9d split DD related headers 2022-08-16 14:32:55 -07:00
Mohamed Oulmahdi f85db068b5
Merge pull request #7901 from Doxense/7823-fix-windows-build
7823-Fix Windows build
2022-08-16 23:09:07 +02:00
Josh Slocum d6e788affc
More force purge fixes (#7902)
* Made force purge more robust to split+merge races

* fix flush/force purge change feed leak

* Better fix for assign while force purge races

* more merge/force purge races

* cleanup
2022-08-16 15:49:59 -05:00
Dennis Zhou fb3ce21d19 blob/java: verifyBlobRange() java bindings 2022-08-16 13:29:23 -07:00