Commit Graph

792 Commits

Author SHA1 Message Date
Josh Slocum bc7cc984b0 Fixing BGVerifyBalance test killing issues 2022-02-25 11:30:21 -06:00
Josh Slocum 38a75a8b89 Merge branch 'main' into blob_integration 2022-02-17 17:47:38 -06:00
Trevor Clinkenbeard 6d3b7c97b8
Revert "add proper downgrade/upgrade test for storage migration with PPW" 2022-02-11 14:37:14 -08:00
Trevor Clinkenbeard 3260ecb32f
Merge pull request #6345 from sfc-gh-xwang/ppw-restarting
add proper downgrade/upgrade test for storage migration with PPW
2022-02-11 11:09:17 -08:00
Trevor Clinkenbeard ef68e6fe0d
Merge pull request #6353 from sfc-gh-ljoswiak/fixes/dynamic-knobs
Fix dynamic knobs correctness issues
2022-02-10 22:13:02 -08:00
A.J. Beamon 2d9a1ff540 Remove the tests from CMakeLists 2022-02-09 15:53:42 -08:00
A.J. Beamon 31aba668a1 Disallow starting the ConfigureTestRestart test from any version before 7.1 because of a bug that causes sporadic failures. 2022-02-09 15:44:50 -08:00
Lukas Joswiak 85da80a9ce Split ConfigIncrement workload
Adds a new ConfigIncrement workload that tests the ability of the
configuration database to remain correct under minority node data loss
situations.
2022-02-09 14:18:40 -08:00
Lukas Joswiak d5a562e6b8 Fix dynamic knobs correctness issues 2022-02-09 13:43:32 -08:00
Mohamed Oulmahdi 23fa27cfde
Merge pull request #6333 from Doxense/add-missing-tests
Add missing tests
2022-02-09 01:03:08 +01:00
Josh Slocum b385db68a4 capped time and total data for BGVerifySmall tests to avoid OOM 2022-02-08 16:47:44 -06:00
Mohamed Oulmahdi e6c16a5e89 Ignore rare/AllSimUnitTests.toml 2022-02-08 22:40:24 +01:00
Xiaoxi Wang 7a904df04f change CMakeList 2022-02-08 11:40:54 -08:00
Xiaoxi Wang 95a3319f92 remove from_7.1.0/ConfigureStorageMigrationTestRestart* because they are in from_7.0.0 2022-02-08 09:08:45 -08:00
Bala Namasivayam a420098fc5 Support AWS v4 header for s3 backup and restore 2022-02-07 17:53:05 -08:00
Mohamed Oulmahdi 00d1532d32 Remove ClientLibManagement test 2022-02-07 16:54:36 +01:00
Xiaoxi Wang 1172761559 add proper downgrade/upgrade test for storage migration with PPW 2022-02-04 16:43:11 -08:00
Mohamed Oulmahdi f10b549bdf Remove Downgrade test
This test seems broken
2022-02-03 23:52:42 +01:00
Mohamed Oulmahdi 6386eb191a Add missing test files 2022-02-03 22:25:11 +01:00
Ata E Husain Bohra 591ef57857
Upgrade AES 128 GCM -> AES 256, StreamCipher code refactor (#6314)
* Upgrade AES 128 GCM -> AES 256, StreamCipher code refactor

Major changes proposed are:
1. Refactor StreamCipher code to enable instantiation of
   multiple encryption keys. However, code still retains
   a globalEncryption key semantics used in Backup file
   encryption usecase.
2. Enhance StreamCipher to provide HMAC signature digest
   generation. Further, the class implements HMAC encryption
   key derivation function.
3. Upgrade StreamCipher to use AES 256 GCM mode from currently
   supported AES 128 GCM mode.
   Note: The code changes the encryption key size, however, the
         feature is NOT currently in use, hence, should be OK.
3. Add EncryptionOps validation and benchmark toml supported
   workload, it does the following:
   a. Allow user to configure encrypt-decrypt of a fixed size
      buffer or variable size buffer [100, 512K]
   b. Allow user to configure number of interactions of the runs,
      in each iteration: generate random data, derive an encryption
      key using HMAC SHA256 method, encrypt data and
      then decrypt data. It collects following metrics:
    i) time taken to derive encryption key.
    ii) time taken to encrypt the buffer.
    iii) time taken to decrypt the buffer.
    iv) total bytes encrypted and/or decrypted
   c. Along with stats it basic basic validations on the encrypted
      and decrypted buffer
   d. On completion for test, records the above mentioned metrics
      in trace files.
2022-01-31 19:52:44 -06:00
A.J. Beamon 6affc58e97 Rename high contention allocator implementation in fdbclient 2022-01-31 14:25:38 -08:00
A.J. Beamon 027fe80594 Added a generic high contention allocator implementation to fdbclient. This is an adapted version of the flow bindings HCA implementation. 2022-01-28 15:34:30 -08:00
Andrew Noyes 96cbfe668c
Fix flaky ctest tests (#6310)
* Use localhost cluster for trace_partial_file_suffix_test

This way we get a predictable 127.0.0.1 in the trace file name

* Skip suspend test of pidof is not available

* Avoid writing to closed trace log

calling fdb_network_stop sends a "close" message to the trace thread,
but the network thread might can still be running and sending "flush"
messages to the network thread. This change basically ignores any
flushes that come after a close.

* Ensure unique ports for multi-process tests
2022-01-28 13:16:44 -08:00
Josh Slocum bc9572028f Added AtomicOps tests for blob granules 2022-01-28 14:40:43 -06:00
Josh Slocum bf6ed8348f A couple workload improvements 2022-01-27 10:26:35 -06:00
Lukas Joswiak bd0dcfedb9 Re-enable CycleTestRestart downgrade tests 2022-01-26 19:22:40 -08:00
Chaoguang Lin 9fba84bc45 Change SnapIncrementalRestore.toml to .txt 2022-01-25 14:41:35 -08:00
Chaoguang Lin 262e94637a Add the comment for the temporary change 2022-01-25 14:41:35 -08:00
Chaoguang Lin 7452f47f82 Disable downgrade test to 7.0 2022-01-25 14:41:35 -08:00
Chaoguang Lin 863ea8000c Split ConfigureTestRestart test to 7.0 and 7.1; remove [configuration] in SnapIncrementalRestore-1.toml; revert CycleTestRestart-1.toml to .txt 2022-01-25 14:41:35 -08:00
Chaoguang Lin d0c21948a6 Revert "Use toml for snapshot test files"
This reverts commit 6b81065b32.
2022-01-25 14:41:35 -08:00
Josh Slocum 14cc0a8b02 Got BlobGranuleCorrectnessWorkload passing a single test 2022-01-25 15:46:29 -06:00
Josh Slocum 672b7ab89d Added new test for blob granules and had more consistent naming 2022-01-24 15:15:27 -06:00
Renxuan Wang 334ba66348 Add the support for using hostname in simulation.
This PR does NOT turn the feature on. Also, disable hostname in downgrade restarting tests.
2022-01-21 10:48:33 -08:00
Jon Fu 5757e2c93c Ignore RocksDB unit test 2022-01-06 13:34:50 -05:00
Jon Fu 93c5efc918 Check RocksDB flag in CMakeLists 2022-01-05 21:48:49 -05:00
Jon Fu e5f7883f63 Ignore RocksDB unit test by default because correctness breaks when RocksDB is not included 2022-01-05 21:47:05 -05:00
He Liu 30b3789316
Merge pull request #6195 from liquid-helium/range-deletion-to-single-deletion
Implement single deletion in RocksDB.
2022-01-04 12:55:58 -08:00
He Liu 1c2c2783ea Implement single deletion in RocksDB.
If the target deletion range contains a single key, convert it into a
single deletion, to avoid extra cost in RocksDB due to range deletion.
2022-01-04 09:59:40 -08:00
Andrew Noyes 9ca514401d Suppress known asan stderr message 2021-12-22 15:04:30 -08:00
Andrew Noyes 6fdbd9ae30 Fail test if there's a sev40 in the logs, and output logs if test fails 2021-12-22 15:03:37 -08:00
Andrew Noyes ebb570422b Format tmp_cluster.py with black 2021-12-22 15:01:54 -08:00
A.J. Beamon c2a960b0f7 Invoke a different command on fdbbackup that doesn't hang when a cluster file is present but the cluster is unavailable. 2021-12-15 09:34:08 -08:00
A.J. Beamon 1a893e8d32 Add a test that various binaries properly parse arguments. 2021-12-14 12:03:44 -08:00
A.J. Beamon f24adc7b6a Fix a bunch of places where we used old-style arguments. Allow hyphens for profiler args. 2021-12-14 09:59:14 -08:00
A.J. Beamon f29f487823
Unify flags (#25)
* Unify flags implementation and change help text in backup.actor.cpp
Description

Testing

* Keep LOG_GROUP unchanged

Description

Testing

* Transfer the hyphens to underscores for internal options and user's input, EXCEPT leading hyphens

Description

Testing

* Use a deep copy of the user's input flag to do the match

Description

Testing

* Convert the _ to - in Option arrays of backup.actor.cpp

Description

Testing

* Transter _ to - for files:
        TLSConfig.actor.h, fdbcli.actor.cpp, fdbserver.actor.cpp, FileConverter.h, FileConverter.cpp

Description

Testing

* Change another way to unify flag: using SO_O_ICASE_HYPHEN_AND_UNDERSCORE to determine whether we do the conversion in function IsEqual

Description

Testing

* Change the config command's name from SO_O_ICASE_HYPHEN_AND_UNDERSCORE to SO_O_HYPHEN_TO_UNDERSCORE

Description

Testing

* Update the comment for the SO_O_HYPHEN_TO_UNDERSCORE

Description

Testing

* Fix left underscore in SOption arrays

Description

Testing

* Convert _ to - in several files for commands

Description

Testing

* Make the FDBService and fdbmonitor backward compatible

Description

Testing

* Fix bugs about pointers

Description

Testing

* Check underscore and hyphen at the same time for --knob_, --localily_ and --test_
And fix bugs in fdbmonitor and FDBService
Description

Testing

* Simplify the function in fdbmonitor and FDBService about retrieving arguments.
And fix some documents in masterserver.actor.cpp

Description

Testing

* Convert _ to - for knob in the setKnob functions

Description

Testing

* Convert - to _ in the setKnob functions

Description
Since key in the knob related maps only contain _

Testing

* Rename varialbe name in the fdbmonitor and FDBService for clarification

Description

Testing

Co-authored-by: Chang Liu <chang.liu@snowflake.com>
2021-12-14 08:44:39 -08:00
Suraj Gupta 968a4f9f50 Don't rely on database config to be updated. 2021-12-10 14:00:34 -06:00
sfc-gh-tclinkenbeard a874eb8961 Use toml for remaining from_7.0.0 and to_7.0.0 restarting tests 2021-12-06 13:23:55 -08:00
sfc-gh-tclinkenbeard 6b81065b32 Use toml for snapshot test files 2021-12-06 13:23:55 -08:00
A.J. Beamon 88ae9fd1a8 Modify parameters of ApiCorrectnessSwitchover test to avoid out of memory errors. 2021-12-03 17:42:59 -08:00