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

Depend TiKV as a component #177

Closed
wants to merge 275 commits into from

Conversation

CalvinNeo
Copy link
Member

What problem does this PR solve?

Issue Number: close pingcap/tiflash#5170

Problem Summary:

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

glorv and others added 30 commits May 30, 2022 18:38
ref tikv#12602, close tikv#12670

Signed-off-by: glorv <glorvs@163.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
close tikv#12680, ref tikv#12680

Fix issue tikv#12680.

Signed-off-by: pingyu <yuping@pingcap.com>

Co-authored-by: iosmanthus <dengliming@pingcap.com>
close tikv#12698

Close engine before cleaning up its data during raft engine migration.

Signed-off-by: tabokie <xy.tao@outlook.com>
close tikv#12709

Signed-off-by: Yu Juncen <yujuncen@pingcap.com>
close tikv#12702

Signed-off-by: Xiaoguang Sun <sunxiaoguang@gmail.com>
…n check is needed and scan is used for it. (tikv#12678)

ref tikv#12597

When bucket is enabled,  using CheckPolicy::Scan would lead to large amount of read IO after tikv restart. Before this PR, the Scan is used unless the region size reaches 1.5G, which is very rare for a 96 ~ 256MB's region-split-size. After this change, generating bucket won't introduce new scan unless the scan is necessary for splitting region. This can significantly reduce the read IO.
Also refine the logic for the fix of 12597.

Signed-off-by: qi.xu <tonxuqi@outlook.com>

Co-authored-by: qi.xu <tonxuqi@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ref tikv#12717

cdc: skip prewrite without value

Signed-off-by: qupeng <qupeng@pingcap.com>
close tikv#12707

This PR optimize debug build by disabling all debuginfo excepts tests
itself. So that the generated artifacts will be smaller and also speed
up compile time a little.

Signed-off-by: Jay Lee <BusyJayLee@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ref tikv#12592

cdc: make tso worker threads configuable

Signed-off-by: qupeng <qupeng@pingcap.com>
close tikv#12711

Signed-off-by: Yu Juncen <yujuncen@pingcap.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
close tikv#12359

This commit makes use of the `schedule_time` in yatp to calculate
the wait duration of each wake.

The wait duration panel is added to the grafana for the unified read
pool and the txn scheduler pool.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ref tikv#12739, close tikv#12739

See tikv#12739

Signed-off-by: gengliqi <gengliqiii@gmail.com>
…ikv#12713)

ref tikv#11612

Signed-off-by: ekexium <ekexium@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ref tikv#12362

This commit measures the read duration spent on reading (e.g. write
conflict checks). This fixes the missing part of scheduler commands
and may help diagnosis when scheduler reading takes a long time.

This commit also changes some now_coarse to now. now_coarse
has a precision of 10ms on many systems, so it may not meet our
precision requirement. Instant::now is fast enough to be called in
these cases.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
close tikv#12758

Signed-off-by: haojinming <jinming.hao@pingcap.com>
close tikv#12660

Signed-off-by: Jay Lee <BusyJayLee@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
…v#12777)

close tikv#12578

As the issue shows, try_batch may use out of date bucket meta for further operation which has not been detected by any test. 

This PR adds a test for it.

Signed-off-by: SpadeA-Tang <u6748471@anu.edu.au>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
close tikv#12771

Signed-off-by: 3pointer <luancheng@pingcap.com>

Co-authored-by: zhangjinpeng1987 <zhangjinpeng@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ref tikv#12362

This commit is a large refactoring that moves collecting engine
PerfContext from storage and coprocessor to engine_rocks and
the tracker.

Now, the storage and coprocessor are mostly decoupled with a
specific engine (engine_rocks).

And it introduces a general trakcer mechanism to collect the metrics
of a request during its whole lifetime. It will help us collect more
performance critical data of a single request more easily.

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
close tikv#12797

Deprecate gc-merge-rewrite option.

Signed-off-by: tabokie <xy.tao@outlook.com>
close tikv#12773

replace signal with signal-hook and update other deps by depbot.

Signed-off-by: Jay Lee <BusyJayLee@gmail.com>

Co-authored-by: zhangjinpeng1987 <zhangjinpeng@pingcap.com>
close tikv#12780

Signed-off-by: glorv <glorvs@163.com>

Co-authored-by: zhangjinpeng1987 <zhangjinpeng@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
tikv#12756)

ref tikv#12772

add tablet related function into Engines API.
The idea is that for region's KV data read/write, using tablet() instead of engines.kv regardless multirocks is enabled or not.

Signed-off-by: tonyxuqqi <tonyxuqi@outlook.com>
Signed-off-by: qi.xu <tonxuqi@outlook.com>

Co-authored-by: qi.xu <tonxuqi@outlook.com>
close tikv#12803

In the investigation process, the debug log information helps a lot, but there's still some important information 
missing such as retrying or 1pc flags. 
Changed:
1. Add more useful information displaying commands.
2. Redact necessary parts.

Signed-off-by: cfzjywxk <lsswxrxr@163.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
close tikv#12787

Add missing metrics for async io code path

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ref tikv#11044, close tikv#11044

Signed-off-by: Lucasliang <nkcs_lykx@hotmail.com>
close tikv#12345

do not reconnect for pd unknown error

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
fengou1 and others added 19 commits September 17, 2022 19:58
…store (tikv#13374)

close tikv#13376

Signed-off-by: fengou1 <feng.ou@pingcap.com>
Signed-off-by: 3pointer <luancheng@pingcap.com>
Signed-off-by: fengou1 <85682690+fengou1@users.noreply.github.com>

Co-authored-by: 3pointer <luancheng@pingcap.com>
Co-authored-by: 3pointer <qdlc2010@gmail.com>
Co-authored-by: qupeng <qupeng@pingcap.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Sep 22, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
9 out of 16 committers have signed the CLA.

✅ CalvinNeo
✅ Leavrth
✅ hehechen
✅ BornChanger
✅ mengxin9014
✅ YangKeao
✅ fengou1
✅ gengliqi
✅ SpadeA-Tang
❌ rleungx
❌ sticnarf
❌ tabokie
❌ 3pointer
❌ haojinming
❌ BusyJay
❌ 5kbpers
You have signed the CLA already but the status is still pending? Let us recheck it.

Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
@CalvinNeo CalvinNeo mentioned this pull request Oct 31, 2022
12 tasks
@CalvinNeo CalvinNeo closed this Oct 31, 2022
@CalvinNeo
Copy link
Member Author

In #210

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.

Refactor TiFlash Proxy