157 Commits

Author SHA1 Message Date
A.J. Beamon
4fd64630e8 Convert literal string ref instances to use _sr suffix 2022-09-19 11:35:58 -07:00
Steve Atherton
0e0a10ab45 Merge commit '59b04d46cff720df5d267daa8dc8a60c25466f74' into kaio-latency-pctile 2022-09-15 20:27:02 -07:00
Steve Atherton
2bf90ca5ec Change KAIO latency metrics to use LatencySample for easier usability. Rename a SQLite-specific knob to indicate it is specific to SQLite. 2022-09-15 13:27:23 -07:00
sfc-gh-tclinkenbeard
82adc1e856 Make g_simulator a pointer 2022-09-15 09:00:33 -07:00
Fuheng Zhao
7c6dbaf3cf update trState ReadOption to optional 2022-08-24 15:04:17 -07:00
Fuheng Zhao
4e748d6bed use optional ReadOptions and RangeReadOptions in requests 2022-08-23 17:16:47 -07:00
Fuheng Zhao
78f4b4f739 add RangReadOptions which inherit from ReadOptions 2022-08-22 11:46:01 -07:00
Fuheng Zhao
28469196b5 add comments 2022-08-10 15:45:15 -07:00
Fuheng Zhao
88284b9cd5
Update fdbserver/KeyValueStoreSQLite.actor.cpp ReadOption
Co-authored-by: Nim Wijetunga <nim.wijetunga@snowflake.com>
2022-08-10 14:20:59 -07:00
Fuheng Zhao
d24a52952c update readOption struct 2022-08-10 10:16:26 -07:00
Fuheng Zhao
1a5b8fbd30 resolve conflicts 2022-08-09 09:57:11 -07:00
Fuheng Zhao
e4fb565057 use readOptions to pass type and cacheResult 2022-08-08 15:30:56 -07:00
Markus Pilman
1de37afd52
Make TEST macros C++ only (#7558)
* proof of concept

* use code-probe instead of test

* code probe working on gcc

* code probe implemented

* renamed TestProbe to CodeProbe

* fixed refactoring typo

* support filtered output

* print probes at end of simulation

* fix missed probes print

* fix deduplication

* Fix refactoring issues

* revert bad refactor

* make sure file paths are relative

* fix more wrong refactor changes
2022-07-19 13:15:51 -07:00
Markus Pilman
03d913a1de Flow compiling 2022-06-27 17:05:55 -06:00
Markus Pilman
a47ed89018 Linux fixes and addressed review comments 2022-06-23 20:52:13 -06:00
Markus Pilman
de48e90276 fdbserver is now compiling 2022-06-23 18:45:26 -06:00
Markus Pilman
d35445a868 enforce include modularization in cmake 2022-06-23 14:37:35 -06:00
sfc-gh-tclinkenbeard
a71099471b Update copyright header dates 2022-03-21 13:36:23 -07:00
Steve Atherton
8f8f95931b In the SQLite storage engine, destroy and create new cursors after SQLITE_CURSOR_MAX_LIFETIME_BYTES of KV read usage because cursor usage increases page cache memory usage in SQLite (internal page cache, not AsyncFileCached) by pinning pages which are not freed until the cursor is destroyed. 2022-03-07 11:20:59 -08:00
Jingyu Zhou
1a5bf25b5c Update code base to use fmt 8.1.1 2022-03-04 15:52:06 -08:00
Renxuan Wang
233c918ffb Replace printf() and fprintf() with fmt::print(). 2022-02-25 19:06:57 -08:00
Renxuan Wang
f7eb66441d Try eliminating warnings in macOS and Windows CI builds.
MacOS warnings are format warnings, e.g., `format specifies type 'long' but the argument has type 'Version' (aka 'long long')`.
Windows warnings are `ACTOR does not contain a wait() statement`.
2022-02-25 19:06:57 -08:00
A.J. Beamon
250a88e682 Enforce that trace event suppression calls happen first when using trace event call chaining. Fix various instances where we weren't following this requirement. 2022-02-24 12:25:52 -08:00
Ray Jenkins
dd45805312
Merge branch 'apple:main' into threadname-issue-6064 2022-02-01 17:40:07 -06:00
gaozengqi
f1bd0f16da Run clang-format 2022-01-28 10:40:33 -08:00
gaozengqi
0e6dbf434b Fix use allKeys.end 2022-01-28 10:40:33 -08:00
gaozengqi
1419d1aab7 Fix short hand 2022-01-28 10:40:33 -08:00
gaozengqi
697d075e20 Add role 'kvfiledump' to dump key-values from storage file 2022-01-28 10:40:33 -08:00
Ray Jenkins
aa41c04993 add back threadnames for debugging 2022-01-28 11:57:52 -06:00
Ray Jenkins
f32fa3a2c8 format fix 2022-01-27 12:38:05 -06:00
Ray Jenkins
f47f1dc2f0 Remove threadName to attempt to find cause of bug in Apple CI build 2022-01-27 12:26:49 -06:00
Ray Jenkins
74bf23950f Check if threadName exceeds 15 chars. 2022-01-26 12:02:54 -06:00
Ray Jenkins
a57b4b355e
Update fdbserver/KeyValueStoreSQLite.actor.cpp
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2022-01-26 10:48:02 -06:00
Ray Jenkins
15ca24dea8
Update fdbserver/KeyValueStoreSQLite.actor.cpp
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2022-01-26 10:47:50 -06:00
Ray Jenkins
fd6597cc7a Rename sqllite-write thread, add index for read threads.
Additionally make note these are actually coroutines and not threads.
2022-01-25 13:56:35 -06:00
Ray Jenkins
fa1d8fc11e Formatting fix. 2022-01-24 20:27:31 -06:00
Ray Jenkins
59726928bb Add sqlite reader thread name. 2022-01-24 19:45:09 -06:00
Ray Jenkins
3d48e6cb5b Add sqlite writer thread name. 2022-01-24 19:44:32 -06:00
sfc-gh-tclinkenbeard
9e06b6e6e3 Make IClosable interface const-correct 2021-10-18 13:40:47 -07:00
Daniel Smith
9713a14ef1 Reverse order of read type and debug ID args 2021-10-18 12:23:09 -04:00
Daniel Smith
df53cc9580 Add an enum to IKeyValueStore to indicate the source/priority of the read 2021-10-15 14:35:59 -04:00
Xiaoge Su
abf73047ca Enforce std:: specifier rather than using namespace 2021-09-16 19:40:28 -07:00
Andrew Noyes
353efe7db2
Merge pull request #5264 from sfc-gh-tclinkenbeard/fix-more-clang-warnings
Enable more warnings for `clang`
2021-07-29 15:43:54 -07:00
sfc-gh-tclinkenbeard
94a65865d9 Merge remote-tracking branch 'origin/master' into fix-clang-warnings 2021-07-28 12:29:27 -07:00
sfc-gh-tclinkenbeard
c74047c665 Merge remote-tracking branch 'origin/master' into fix-more-clang-warnings 2021-07-28 11:51:02 -07:00
Steve Atherton
507c1f11e3 Add .log() to bare TraceEvent() invocations without any .detail()s to avoid clang-tidy warning about immediate destruction of object without use. 2021-07-26 19:55:10 -07:00
sfc-gh-tclinkenbeard
3442ebd3b7 Fix more -Wreorder-ctor warnings across many files 2021-07-24 11:20:51 -07:00
sfc-gh-tclinkenbeard
e62e6503ac Fix most delete-non-virtual-dtor clang warnings 2021-07-21 23:32:44 -07:00
Evan Tschannen
fcb8bd6475
Revert "Make the sim2 run loop match the behavior of the net2 run loop." 2021-06-22 14:50:01 -07:00
Evan Tschannen
2ae4f51d19 added a comment 2021-06-22 09:42:00 -07:00