18164 Commits

Author SHA1 Message Date
Aaron Molitor
9f5197b54c use FDB_VERSION in lieu of PROJECT_VERSION (package scripts) 2021-11-29 15:11:20 -08:00
Aaron Molitor
77db63274b use FDB_VERSION in lieu of PROJECT_VERSION or CMAKE_PROJECT_VERSION
write FDB_VERSION to a file to avoid regex golf in other build scripts
2021-11-29 15:11:20 -08:00
Aaron Molitor
a930039952 remove (cmake version and git detached head) warnings from build logs 2021-11-29 15:11:20 -08:00
Aaron Molitor
08b635d405 rename prerelease_string, replace PRERELEASE with SNAPSHOT 2021-11-29 15:11:20 -08:00
Aaron Molitor
344a46c75c ignore .stignore and cmake-build-release 2021-11-29 15:11:20 -08:00
A.J. Beamon
13a4743e76 Check whether connRecord is null before logging it. 2021-11-29 14:22:44 -08:00
Andrew Noyes
bccda9f6fe Don't provide default for requireFunction in loadClientFunction
Recently there was an issue where we added a new symbol to the c api and
we did not include the right header version guard to see if it was
required. Let's make this not a default so that we force callers to
think about what the right header versions to require it are.
2021-11-29 14:08:28 -08:00
sfc-gh-ngoyal
ef248f3dbd
Merge pull request #6060 from sfc-gh-satherton/remove-try-evict
Remove unused / unwanted code in Redwood.
2021-11-29 13:26:05 -08:00
A.J. Beamon
c47535245b
Merge pull request #6033 from sfc-gh-ajbeamon/improved-client-db-logging
Client logging improvements
2021-11-29 13:23:10 -08:00
Andrew Noyes
b6fd402a3c Add option to use boost or libcoro
By default, use boost everywhere except windows and linux x86 (for
performance reasons)
2021-11-29 13:14:15 -08:00
Trevor Clinkenbeard
6429b82796
Merge pull request #6053 from RenxuanW/fromHostname
Change member variable fromHostname to type bool.
2021-11-29 13:13:21 -08:00
Josh Slocum
1870e07ff4 Fixed pause racing with waitUntilHealthy 2021-11-29 14:19:15 -06:00
A.J. Beamon
b8bd89f88d Shorten the name of external client threads. Add a thread name for trace logging threads. 2021-11-29 09:57:10 -08:00
A.J. Beamon
264c75b9a6 Add some extra client logging details:
1. Add a trace event when a database is created and move the cluster file / connection string from ClientStart to the new trace event
2. Add a detail for the path to the image being loaded
3. Add a detail for whether a client library is primary or not
4. Set a thread name for each external client thread that includes the release version
2021-11-29 09:57:10 -08:00
sfc-gh-ngoyal
90db1eb202
Merge pull request #6057 from sfc-gh-etschannen/fix-queue-commit
Fix a bug which prevented the tlog from spilling data
2021-11-29 09:56:57 -08:00
Steve Atherton
8216ad1e4e When a cached page is hit, if it is in the prioritized eviction order don't move it to the normal order. 2021-11-28 21:04:35 -08:00
Steve Atherton
bed25f9571 Delay prioritized eviction of updated pages until after commit completes. 2021-11-28 21:03:44 -08:00
Steve Atherton
0f5535fce1 Remove explicit tryEvict(x) as it is unused and it is functionally replaced by prioritizeEviction(x). 2021-11-27 03:26:34 -08:00
Evan Tschannen
e3819dad7c fix: If a removed tlog never attempted a queue commit, the update storage loop could get stuck waiting for queueCommittingVersion to advance 2021-11-25 09:55:01 -08:00
Renxuan Wang
09fedc429a Remove unnecessary boost/bind.hpp.
Complement of #6026.
2021-11-24 16:33:05 -08:00
sfc-gh-ngoyal
f8538d0bc3
Merge pull request #5897 from sfc-gh-ahusain/ahusain-fixCommitProxyCount
Use DEFAULT_COMMIT_GRV_PROXIES_RATIO to override proxies_count if mutation supplied value is -1
2021-11-24 15:25:01 -08:00
Jingyu Zhou
6798d2972c
Merge pull request #6047 from sfc-gh-etschannen/fix-best-team
Data distribution could miss storage server failures
2021-11-24 12:57:33 -08:00
Ata E Husain Bohra
0962fcb243 Override commit/grv proxies_count if mutation supplied new value is -1
Patch improves on handling scenarios where either commit or grv proxies
value is update to -1 OR `proxies_count` is being reset.
The code splits the proxies between two proxies by ensuring for invalid
input configuration, the min (read as 1) proxies gets provisioned, otherwise,
the split is done based on input values

Patch handles the scenario where mutation supplied values to update grv_proxies
and/or commit_proxies is -1, however, the total proxy count > 1,
uses DEFAULT_COMMIT_GRV_PROXIES_RATIO to split proxies between
grv_proxies & commit_proxies.
2021-11-24 12:52:31 -08:00
Evan Tschannen
80014d3247 Merge branch 'master' of https://github.com/apple/foundationdb into fix-best-team
# Conflicts:
#	fdbclient/ServerKnobs.cpp
2021-11-24 11:56:23 -08:00
Evan Tschannen
8fa7085c78 added a comment 2021-11-24 11:40:41 -08:00
Evan Tschannen
c9ee83e1b1 fix: do not buggify PEEK_TRACKER_EXPIRATION_TIME to a value of 20 2021-11-24 11:28:57 -08:00
Renxuan Wang
46d17d748f Change member variable fromHostname to type bool.
So that it can be serialized.
2021-11-23 14:25:02 -10:00
Evan Tschannen
1afef44f19 fix: self->shardsAffectedByTeamFailure->moveShard must be called without any waits after getting the destination team or we could miss failure notifications for the storage servers in the destination team 2021-11-23 15:26:38 -08:00
Evan Tschannen
e3422b2443 fix: change feed streams were not being closed properly 2021-11-23 15:01:44 -08:00
Evan Tschannen
37c9a1320c added --print_sim_time to print simulated time to stdout 2021-11-23 15:01:44 -08:00
Evan Tschannen
b0aad44831 change feed requests with an explicit end need to get empty versions at the end boundary 2021-11-23 15:01:44 -08:00
Evan Tschannen
3360000a91 fix: an empty mutation vector did not mean that all of the data was returned 2021-11-23 15:01:44 -08:00
Evan Tschannen
9df287ea06 fixed empty version merge logic 2021-11-23 15:01:44 -08:00
Evan Tschannen
6d9f134bf0 fix: merge needs to update on empty versions to release other mutations blocked by the empty version 2021-11-23 15:01:44 -08:00
Evan Tschannen
014fb2f31c fix: onEmpty must check all merged streams 2021-11-23 15:01:44 -08:00
Evan Tschannen
a0afe530f8 protect against the changeFeedStorageData getting destroyed 2021-11-23 15:01:44 -08:00
Evan Tschannen
d9a6feea72 fix: properly initialize notAtLeast 2021-11-23 15:01:44 -08:00
Evan Tschannen
e97d337ffe fix: when a feed transitions from atLatest to not atLatest stall all updates at the blocked version 2021-11-23 15:01:44 -08:00
Evan Tschannen
10a925b7e9 do not return mutations larger than the dequeVersion 2021-11-23 15:01:44 -08:00
Evan Tschannen
e19277160e improved the change feed workload to test whenAtLeast 2021-11-23 15:01:44 -08:00
Evan Tschannen
547c5899f8 whenAtLeast could return an incorrect result when the connection closed 2021-11-23 15:01:44 -08:00
Evan Tschannen
31b2414706 fixed a crash while popping change feeds 2021-11-23 15:01:44 -08:00
Evan Tschannen
f3bb1d8f51 properly handle an active change feed stream when removed 2021-11-23 15:01:44 -08:00
Evan Tschannen
11d5cae515 do not buggify peek cursor expire time too low because it could cause the log routers to fail to make progress 2021-11-23 15:00:34 -08:00
Andrew Noyes
6c35084c2e
Merge pull request #6040 from sfc-gh-anoyes/anoyes/fix-loading-older-clients
Don't require fdb_transaction_get_range_and_flat_map in older clients
2021-11-22 13:07:24 -08:00
sfc-gh-ngoyal
12e68da635
Merge pull request #6036 from sfc-gh-satherton/redwood-debug-sim-fixes
Test-only bug fixes in Redwood along with debug logging detail improvements.
2021-11-22 11:13:28 -08:00
Andrew Noyes
c6472790e3 Don't require fdb_transaction_get_range_and_flat_map in older clients 2021-11-22 10:49:26 -08:00
sfc-gh-ngoyal
e43ddb09ac
Merge pull request #6034 from sfc-gh-satherton/remap-window-fix
Bug fix:  incorrect remap cleanup window size in KeyValueStoreRedwood
2021-11-22 09:12:59 -08:00
sfc-gh-ngoyal
9e76baa854
Merge pull request #6037 from Doxense/add-missing-windows-bind-header
Add missing bind header for Windows (master)
2021-11-22 09:10:00 -08:00
Mohamed Oulmahdi
fe98f1ea56 Add missing bind header for Windows (boost/bind/bind.hpp) 2021-11-22 15:50:32 +01:00