Commit Graph

24972 Commits

Author SHA1 Message Date
Vaidas Gasiunas 6aba6ceb8a
libfdb_c_shim: Load all symbols at once in a thread-safe way; remove unused options of implib.so (#9293) 2023-02-02 19:37:24 +01:00
Dan Adkins be70a341f2 Revert "Use real clock source for trace events in real fdbserver, but now() in simulation. (#9270)"
This reverts commit 02f78500b5.

That changed the default behavior of the clock used for trace logs, which
might break some tooling or workflows.
2023-02-02 10:30:31 -08:00
Dan Adkins 02f78500b5
Use real clock source for trace events in real fdbserver, but now() in simulation. (#9270)
CommitDebug trace events are useful for measuring, in detail, the time spent in
the various parts of a single transaction. Like all log events, they have a time
associated with them. This time comes for now(), which in a real fdb system is
only updated in the run loop. This renders the timestamps inaccurate in certain
CPU bound sections which don't have a wait, e.g. in the resolver.

We want to preserve the current behavior in simulation, where the timestamps are
artificial, deterministic between runs, and only updated in the run loop.

In a real system, we prefer to use a real clock so we can use the difference
between two trace events in the logs as a measurement of elapsed time.

This does not modify the behavior of other parts of the system, which use the
cached now() for various purposes.
2023-02-02 12:33:45 -05:00
Xiaoxi Wang 347b3d4ca2 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-02-02 09:24:14 -08:00
Vaidas Gasiunas f8b1da8bc6
An option to initialize client tracing in setupNetwork (#9209)
* client_config_tester: use a generic mechanism to set specific network options

* trace_initialize_on_setup option to initialize client traces on network setup without local IP address

* trace_initialize_on_setup: Addressing review comments

* Restore correct formatting

* trace_initialize_on_setup: Update go bindings

* Include PID for identification into trace file names by default

* Use the same naming pattern for trace files in all configurations

* Empty commit
2023-02-02 10:00:51 +01:00
Jingyu Zhou 3d7893c3d0
Merge pull request #9289 from jzhou77/fix
Fix excessive killing for HA configuration
2023-02-01 21:57:03 -08:00
Xiaoxi Wang a8013bad5c add splitClearRangeByTenant and unit tests 2023-02-01 20:25:56 -08:00
Ankita Kejriwal 9529f360ee Update storage metrics functions to use the version at which tenant was read 2023-02-01 19:44:31 -08:00
Nim Wijetunga 86f3665514
Handle EKP Tenant Not Found Errors (#9261)
handle EKP tenant not found errors
2023-02-01 19:15:38 -08:00
Jingyu Zhou e96adfa449 Fix excessive killing for HA configuration
In the HA configuration, it's possible the remote DC was killed 2 out of 3
machines, left not enough machines for a successful recovery. So this PR changes
to Reboot to avoid such excessive killings.
2023-02-01 15:16:10 -08:00
Xiaoxi Wang c0f84a8855 set READ_LOCK_AWARE 2023-02-01 13:39:13 -08:00
Xiaoxi Wang fb8ef92812 add RAW_ACCESS option; refine code comments; eliminate repeated code 2023-02-01 13:17:47 -08:00
Xiaoxi Wang 128bfccfa7 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-02-01 13:16:28 -08:00
Xiaoxi Wang de670b7129
Merge pull request #9285 from sfc-gh-xwang/fix/main/testTimeout
Remove test timeout
2023-02-01 12:00:23 -08:00
Josh Slocum 6dbb96312b
move feed cleanup check to after data is guaranteed to be available for granule (#9283) 2023-02-01 13:19:08 -06:00
Jingyu Zhou 5122cb3499
Merge pull request #9282 from jzhou77/fix
Reduce logging level for verbose events
2023-02-01 11:16:41 -08:00
Xiaoxi Wang 8f7a98fb9d remove test timeout 2023-02-01 11:04:39 -08:00
Jingyu Zhou dbea7877cf
Merge pull request #9278 from sfc-gh-satherton/consistencyscan-updates
Documentation for consistencyscan CLI command.
2023-02-01 10:46:54 -08:00
Xiaoxi Wang c37042c81d Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-02-01 10:08:32 -08:00
Jingyu Zhou 982ce105e5 Reduce logging level for verbose events
From one of nightly failure due to too many log lines, these are top 3:

  60100 FastRestoreLoaderDispatchRequests
  79655 FastRestoreGetVersionSize
  93888 FastRestoreSplitMutation
2023-02-01 09:51:16 -08:00
Steve Atherton b1ed45688e Added documentation for consistencyscan CLI command. 2023-01-31 23:09:28 -08:00
Jingyu Zhou b911bcfce2
Merge pull request #9240 from jzhou77/fix
Fix UpgradeAndBackupRestore test failures
2023-01-31 19:15:58 -08:00
Jingyu Zhou 9c5ce68d98 Merge branch 'main' of https://github.com/apple/foundationdb into fix 2023-01-31 17:40:13 -08:00
Ankita Kejriwal 92ae21eb44 Design for the storage quota feature 2023-01-31 16:42:36 -08:00
Xiaoxi Wang a447ec98a0 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/listTenant 2023-01-31 16:25:07 -08:00
A.J. Beamon b8592c4e09
Merge pull request #9219 from sfc-gh-jfu/tenant-object-binding-tests
Add tenant getId to java/python binding tester
2023-01-31 16:22:38 -08:00
A.J. Beamon 6665eb6654 Update cluster recovery for tenant ID changes 2023-01-31 16:06:45 -08:00
He Liu eb4839d046
Fix audit_storage issues (#9265)
* Erase audit from DD after completion.

* Use CLIENT_KNOBS->TOO_MANY as the default number of rows for
get_audit_status.
2023-01-31 15:39:01 -08:00
Jon Fu 56bef16a87
Update bindings/bindingtester/spec/tenantTester.md
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2023-01-31 18:01:06 -05:00
Jon Fu 2ade905a60
Update bindings/bindingtester/spec/tenantTester.md
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2023-01-31 18:01:00 -05:00
Xiaoxi Wang e383ea2138 push down offset calculation to listTenants; optimize fdbcli tenant list implementation 2023-01-31 14:42:38 -08:00
Xiaoxi Wang de82a5a7fb format code 2023-01-31 14:01:07 -08:00
Xiaoxi Wang 20b702108e fix java binding name changing 2023-01-31 13:43:29 -08:00
Jon Fu e761c1c169 update bindingtester spec 2023-01-31 13:41:39 -08:00
Josh Slocum 77875d7fee
Fixing SkewedReadWrite to load its metadata in a transactionally consistent way (#9274) 2023-01-31 14:52:36 -06:00
Jingyu Zhou fcab17cfab Merge remote-tracking branch 'apple/main' into fix 2023-01-31 12:47:28 -08:00
Jon Fu c07657c592 push string onto stack when active tenant is set 2023-01-31 12:34:37 -08:00
Xiaoxi Wang 851b6e7e56 rename APIs 2023-01-31 11:16:17 -08:00
Xiaoxi Wang 211a363131
Merge pull request #9174 from sfc-gh-xwang/feature/main/watchTenant
Validate tenant access in applyMetadataEffect and corresponding test workload
2023-01-31 10:32:36 -08:00
Jingyu Zhou 58fcc90783 Add comments on why custom encoding is needed 2023-01-31 10:04:27 -08:00
Xiaoxi Wang 911f849312
Apply suggestions from code review
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2023-01-31 09:13:49 -08:00
Jingyu Zhou 0b7650e973
Merge pull request #9273 from sfc-gh-vgasiunas/vgasiunas-fix-windows-build
Fix compilation errors in Windows
2023-01-31 09:04:21 -08:00
Vaidas Gasiunas b7a5f6af1c Fix compilation errors in Windows 2023-01-31 16:20:31 +01:00
Marian Dvorsky dfce17f65f
Add new Blob Granule (BG) APIs for raw blob data access (#9245)
Adds a prototype of new APIs to access the Blob Granule data:

fdb_future_readbg_get_descriptions
fdb_readbg_parse_snapshot_file
fdb_readbg_parse_delta_file
fdb_result_get_bg_mutations_array

The client first calls fdb_future_readbg_get_descriptions to get a high level description of granules, reads the files and then calls fdb_readbg_parse_snapshot_file and fdb_readbg_parse_delta_file to parse the snapshot and delta files, respectively. This allows the client to get a raw access to the blob granule data, and allows the client to process them in a way they wouldn't be efficiently able to when using previous blob granule read APIs.

We expect these APIs to evolve before a release.

---------

Co-authored-by: Josh Slocum <josh.slocum@snowflake.com>
2023-01-31 15:22:04 +01:00
Jingyu Zhou ceeb988b29
Merge pull request #9266 from saintstack/audit_storage_help
Edit of audit_storage usage and help message.
2023-01-30 20:27:26 -08:00
Jingyu Zhou b4c16e9b97
Merge pull request #9217 from xis19:binding_test
Generate bindingtester2 tarball for test
2023-01-30 20:06:16 -08:00
Xiaoge Su 2f581fc290 fixup! Reformat source 2023-01-30 17:07:57 -08:00
Xiaoge Su 84343b3b97 fixup! fix the compile error 2023-01-30 17:07:57 -08:00
Xiaoge Su 896a9decd5 Let materializeBlobGranule accept a std::vector<StringRef> instead of StringRef[]
The deltaFileData parameter was type StringRef[], this indirectly causes
issue #9206. By setting the incoming parameter type to be
std::vector<StringRef>, the issue might be fixed plus adding extra
memory safety.
2023-01-30 17:07:57 -08:00
Xiaoxi Wang 3b385bbfe4 Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/watchTenant 2023-01-30 16:59:05 -08:00