- 29 Jul, 2019 2 commits
-
-
Glitter authored
* trigger next gc after gc if needed
-
yiwu-arbug authored
Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
- 25 Jul, 2019 3 commits
-
-
Glitter authored
* check status of BatchFinishFile
-
Connor authored
* update discardable size before delete files in range Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
Glitter authored
Because db is locked when add/sub bg_gc_scheduled_, so this variable is no need to be atomic
-
- 22 Jul, 2019 2 commits
-
-
Wu Jiayu authored
-
Connor authored
* check edits before written to manifest Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
- 18 Jul, 2019 1 commit
-
-
Wu Jiayu authored
- Set background error if encountered a critical error. Now it's set for two cases - BackgroundGC() error - LogAndApply() error after generate new blob file - If background error is set, all following foreground write operations will be refused and return background error status
-
- 16 Jul, 2019 2 commits
-
-
Wu Jiayu authored
- There is no libatomic in MacOS clang(and maybe some other environment), so check if libatomic existed before link. - Added MacOS build to travis. For TSAN build , a unused-command-line-argument is defined in RocksDB cmake file, witch will fail compilation on MacOS, skip it.
-
Wu Jiayu authored
* fix iterator * fix * fmt
-
- 11 Jul, 2019 2 commits
-
-
Connor authored
* schedule gc to bottom priority pool Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
Connor authored
Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
- 28 Jun, 2019 1 commit
-
-
yiwu-arbug authored
Summary: * Add `GetTitanOptions()` and `GetTitanDBOptions()` API. * Fix `SetOptions()` fail when `blob_run_mode` is not set. * Update info log around printing options. Test Plan: Updated test. Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
- 26 Jun, 2019 1 commit
-
-
yiwu-arbug authored
Summary: Adding some more info log logging to track blob file live cycle. Test Plan: Existing test. Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
- 24 Jun, 2019 8 commits
-
-
yiwu-arbug authored
-
Connor authored
* fix version set log Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
Connor authored
* introduce edit collector Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
yiwu-arbug authored
* Eliminate use of abort() Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
yiwu-arbug authored
Summary: On `TitanDBImpl::Open` we open rocksdb twice, and the first time is just to get list of CFs and construct table factory. Compaction can run at this point, generating SST files without custom table property. This can cause problem later on, since `OnCompactionCompleted` assume the property always exist and even use it to detect new blob file generated from the compaction. This patch disable auto compaction for the first rocksdb open to avoid such problem. The test shown here demo the issue without disabling compaction: https://gist.github.com/yiwu-arbug/34c561d0daf4f9c293bb7b2825d77bf2 Test Plan: Existing tests Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
yiwu-arbug authored
Summary: In fallback mode, table builder will try to read value from blob file and write the value back to LSM. If the corresponding blob file had been GC-ed and deleted, however, table builder will return error and fail compaction. Fixing it by writing the blob index to output if table builder get error when reading blob value. Test Plan: See the new test. Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
yiwu-arbug authored
Summary: Log Titan options on DB open. Sample: https://gist.github.com/yiwu-arbug/52720461651ad7019657d0dda3c50311 Also add logging around create CF/drop CF/destroy CF handle/set option. Test Plan: Run tests and look at the logs. Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
Connor authored
Override `Iterator* NewIterator(const ReadOptions& opts)`, otherwise, due to implicit casting, calling `db.NewIterator(TitanReadOptions::new())` will lead to a Rocksdb's iterator instead of Titan's. Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
- 23 Jun, 2019 1 commit
-
-
Connor authored
* add key only iter option Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
- 19 Jun, 2019 1 commit
-
-
Connor authored
Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
- 17 Jun, 2019 1 commit
-
-
Yuan authored
-
- 14 Jun, 2019 1 commit
-
-
siddontang authored
Signed-off-by:
siddontang <siddontang@gmail.com>
-
- 13 Jun, 2019 2 commits
-
-
siddontang authored
Signed-off-by: siddontang siddontang@gmail.com Copy from https://github.com/facebook/rocksdb/blob/master/CMakeLists.txt#L210
-
yiwu-arbug authored
Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
- 05 Jun, 2019 1 commit
-
-
Xinye Tao authored
* Add Titan internal stats * add metrics for blob monitoring * add override quantifier * address comments * fix minor issue * address comments * address comments * address comments * merge master * turn on test output * fix merge issue * fix segfault in background gc * fix loop * remove loop
-
- 04 Jun, 2019 1 commit
-
-
Xinye Tao authored
* Add blob-run-mode for downgrading Titan * fix format issue * address comment * change string req to kabab-case * address comments * address comments * fix bug from merge * address comments * address comments * address comments * address comment * address comment * pick comments from mutex-fix * remove mutex fix * fix mutex issue in blob storage
-
- 03 Jun, 2019 1 commit
-
-
Xinye Tao authored
Add thread_safety_test to catch data race issues around CF add/drop and GC.
-
- 25 May, 2019 1 commit
-
-
Tesla Ice Zhang authored
* Simplify CMake script Signed-off-by:
ice1000 <ice1000kotlin@foxmail.com> * Exclude tests Signed-off-by:
ice1000 <ice1000kotlin@foxmail.com>
-
- 24 May, 2019 1 commit
-
-
Connor authored
* add metrics Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
- 16 May, 2019 1 commit
-
-
yiwu-arbug authored
* change codecov comment style Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
- 15 May, 2019 2 commits
-
-
Xinye Tao authored
Add an uint64 test flag `min-blob-size` for Titan in titandb_bench and titandb_stress tests.
-
yiwu-arbug authored
Adding scripts/format-diff.sh to use clang-format to format code changes since diverge from master. Also adding travis CI job to check if the code needs to format. Also format all existing code. Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
- 14 May, 2019 2 commits
-
-
Connor authored
As Rocksdb described, `DropColumnFamilies()` only records the drop of the column family specified by ColumnFamilyHandle. The actual data is not deleted until the client calls `delete column_family`, namely `DestroyColumnFamilyHandle()`. We can still continue using the column family if we have outstanding ColumnFamilyHandle pointer. now there are some problems: - after dropping column family, the blob files of it may be deleted before column family handle is destroyed. - When opening DB without some existing column families(not supported yet), the blob file of these will be regarded as obsolete files and deleted. - After destroyed column handle(not drop the column, just not need to read/write it anymore), we need to remove inner blob storage and evict related cache.
-
yiwu-arbug authored
use `lcov` to generate code coverage report together with GCC build, and send result to codecov. Also some minor refactor to travis config. Signed-off-by:
Yi Wu <yiwu@pingcap.com>
-
- 11 May, 2019 1 commit
-
-
Connor authored
Signed-off-by:
Connor1996 <zbk602423539@gmail.com>
-
- 09 May, 2019 1 commit
-
-
yiwu-arbug authored
Update cmake script to add jemalloc and compression libraries' include directories. This is to fix missing headers in build, e.g: https://travis-ci.org/pingcap/rust-rocksdb/jobs/529604990 After the fix rust-rocksdb build will pass: https://travis-ci.org/yiwu-arbug/rust-rocksdb/jobs/529906506
-