Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick miscellaneous patches to 6.29.tikv #283

Merged
merged 18 commits into from
May 12, 2022

Conversation

Move `WaitForFlushMemTable` API to public. It is needed for hotfix of tikv/titan#93

Signed-off-by: Yi Wu <yiwu@pingcap.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
The changes are:
- make `StatisticsImpl` as a template
- remove internal stats due to facebook#4714

Signed-off-by: tabokie <xy.tao@outlook.com>
@tabokie tabokie force-pushed the pick-misc branch 3 times, most recently from 1f85419 to 519a120 Compare May 11, 2022 12:31
hawkingrei and others added 9 commits May 11, 2022 23:15
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: qupeng <qupeng@pingcap.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Related to tikv/rust-rocksdb#517 and tikv#182
Adds code used in compiling with [rocksdb~6.4.tikv](https://github.com/tikv/rocksdb/tree/6.4.tikv) along with [rocksdb~6.4.cloud](https://github.com/tikv/rocksdb/tree/6.4.cloud)

- Makes public the struct LogReporter so that it can be accessed by [rocksdb~6.4.cloud/cloud/manifest_reader.cc#L114](https://github.com/tikv/rocksdb/blob/6a7c514453e3e3e1c3bb57c18d8e0280089ccdcd/cloud/manifest_reader.cc#L114)

Signed-off-by: Devdutt Shenoi <devdutt@outlook.in>
Signed-off-by: tabokie <xy.tao@outlook.com>
I want to use format of rocksdb::WriteBatch to encode key-value pairs of TiKV, and I need an more effective method to copy data from Entry to WriteBatch directly so that I could avoid CPU cost of decode.

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
* add range for compaction filter context

Signed-off-by: qupeng <qupeng@pingcap.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
* allow no_io for VersionSet::GetTableProperties

Signed-off-by: qupeng <qupeng@pingcap.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
This PR supports to access `seqno` for every key/value pairs in compaction filter or iterator.
It's helpful to enhance GC in compaction filter in TiKV.

Signed-off-by: qupeng <qupeng@pingcap.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Introduce `FileSystemInspector` interface and `FileSystemInspectedEnv`. With
`FileSystemInspectedEnv`, each file operation must first consult
`FileSystemInspector` before reaching actual IO logic.

Signed-off-by: tabokie <xy.tao@outlook.com>
Add listener for subcompaction, only called when there are actually multiple subcompactions executed in parallel.

Signed-off-by: tabokie <xy.tao@outlook.com>
hicqu and others added 4 commits May 12, 2022 12:02
This PR adds a new property is-write-stalled to query whether the column family is in write stall or not.

In TiKV there is a compaction filter used for GC, in which DB::write is called. So if we can query whether the DB instance is stalled or not, we can skip to create more compaction filter instances to save some resources.

Signed-off-by: qupeng <qupeng@pingcap.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
* add option to disable write stall

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
* fix check log seqno

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
tabokie and others added 3 commits May 12, 2022 12:45
Only enable force option check when reading options file from lower version.

Signed-off-by: tabokie <xy.tao@outlook.com>
Original PR: facebook#6716

Signed-off-by: Xintao <hunterlxt@live.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: Xintao <hunterlxt@live.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants