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

status api: Get engine type api #11

Open
wants to merge 680 commits into
base: master
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Dec 27, 2022

  1. log-backup: applied some change to make better RPO (tikv#13940)

    close tikv#13941, ref pingcap/tidb#39620
    
    - If failed to get initial snapshot, remove the subscription as soon as possible. 
    - Added a cache of getting checkpoint. This cache is lease-based -- the lease time is simply the tick interval of the coordinator. 
    - Make the channel size huger for don't blocking the main loop when many regions migrating.
    
    Signed-off-by: hillium <[email protected]>
    Signed-off-by: hillium <[email protected]>
    Signed-off-by: 山岚 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Dec 27, 2022
    Configuration menu
    Copy the full SHA
    7be952a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3903b8 View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: gc tablets (tikv#13974)

    ref tikv#12842
    
    Signed-off-by: tabokie <[email protected]>
    Signed-off-by: Xinye Tao <[email protected]>
    tabokie authored Dec 27, 2022
    Configuration menu
    Copy the full SHA
    77c2199 View commit details
    Browse the repository at this point in the history
  4. raftstore-v2: purge raft engine (tikv#13993)

    ref tikv#12842
    
    Implement periodical purge in v2.
    
    Signed-off-by: tabokie <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    tabokie and ti-chi-bot authored Dec 27, 2022
    Configuration menu
    Copy the full SHA
    0404a7c View commit details
    Browse the repository at this point in the history
  5. raftstore-v2: cleanup stale tablet on restart (tikv#13994)

    ref tikv#12842
    
    If operations like snapshot, split, are aborted by restart, they needs
    to be either resumed or cleanup. This PR checks for garbage after
    restart and resume committed operations.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Dec 27, 2022
    Configuration menu
    Copy the full SHA
    25261c8 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2022

  1. modify raft gc log impl for witness (tikv#13869)

    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    Signed-off-by: Zwb <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ethercflow and ti-chi-bot authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    09f9aac View commit details
    Browse the repository at this point in the history
  2. raftstore-v2: a few panic fix (tikv#13996)

    ref tikv#12842
    
    a few panic fix
    1) update_approximate_raft_log_size may run into divid by zero error 
    2) appy_delete may have None write_batch
    3) StoreMeta::set_region may run into region corruption error if it's destroyed and re-created. 
    4) TabletSnapManager's snapshot size calculation may throw Other error.
    
    Signed-off-by: qi.xu <[email protected]>
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    Co-authored-by: Jay Lee <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    4 people authored Dec 28, 2022
    Configuration menu
    Copy the full SHA
    177efaf View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2022

  1. raftstore-v2: avoid ticking when there are many unapplied logs (tikv#…

    …13995)
    
    ref tikv#12842
    
    Whenever timeout, the peer will check for unapplied logs whether
    there are pending conf change and trigger heavy reads. So we
    wait till most logs are applied before ticking.
    
    It also fix following issues:
    - PersistenceListener is not installed
    - implementation of persisted_apply_index is wrong
    - parse tablet name is wrong
    
    Signed-off-by: Jay Lee <[email protected]>
    BusyJay authored Dec 30, 2022
    Configuration menu
    Copy the full SHA
    06bfaa4 View commit details
    Browse the repository at this point in the history
  2. add commit/apply duration for raft store (tikv#13946)

    ref tikv#12842
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Dec 30, 2022
    Configuration menu
    Copy the full SHA
    64293cb View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2023

  1. extend evict_entry_cache for restart (tikv#13998)

    close tikv#13997
    
    Support to use evict_entry_cache when restart node.
    
    Signed-off-by: tabokie <[email protected]>
    Signed-off-by: hongyunyan <[email protected]>
    Signed-off-by: Xinye Tao <[email protected]>
    Signed-off-by: Jay Lee <[email protected]>
    Signed-off-by: Wenbo Zhang <[email protected]>
    Signed-off-by: Zwb <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    Co-authored-by: Jay <[email protected]>
    Co-authored-by: Zwb <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    5 people authored Jan 3, 2023
    Configuration menu
    Copy the full SHA
    a6afe78 View commit details
    Browse the repository at this point in the history
  2. raft-engine: remove confusing API cut logs (tikv#14010)

    ref tikv#12842
    
    The API is supposed to be used with `append` but nowhere can we find
    the clue. This PR merges `cut_logs` and `append` to reduce confusion
    and mistakes.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Jan 3, 2023
    Configuration menu
    Copy the full SHA
    5de5fd2 View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: publish tablet in raftstore thread only (tikv#14009)

    ref tikv#12842
    
    Publish tablet in apply thread is unsafe. This PR moves the operation to
    raftstore. It also fixes the issues that applying two splits at a time can
    cause panic. It also makes sure cache will be cleared after tablet is published.
    
    Signed-off-by: Jay Lee <[email protected]>
    BusyJay authored Jan 3, 2023
    Configuration menu
    Copy the full SHA
    bce01cf View commit details
    Browse the repository at this point in the history
  4. *: introduce slog_panic and SlogFormat (tikv#14014)

    ref tikv#12842
    
    These two are helpers to utilize the static KV pairs in logger. In the
    past, we use `logger.list()` to try to format the configured KV pairs,
    but it will not work as values are omitted.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Jan 3, 2023
    Configuration menu
    Copy the full SHA
    8aef20c View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Introduce priority queue for priority scheduling (tikv#14002)

    ref tikv#13730
    
    Introduce priority-based channel
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Connor1996 and ti-chi-bot authored Jan 4, 2023
    Configuration menu
    Copy the full SHA
    4619f32 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. raftstore-v2: only send clean snapshot (tikv#14015)

    ref tikv#12842
    
    When the tablet contains dirty data right after split, generating snapshot may
    just a waste. On the other hand, split usually happens on all peers, so delay
    it a bit actually makes all peers more likely to be initialized by split. So
    this PR rejects generating snapshot when it detects it still has dirty data.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Jan 5, 2023
    Configuration menu
    Copy the full SHA
    cdc2e48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df3ee59 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2023

  1. raftstore-v2: store heartbeat add kv size and snap size (tikv#14016)

    ref tikv#12842
    
    1. store heartbeat should add snapshot and kv engine used size
    
    Signed-off-by: bufferflies <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    bufferflies and tabokie authored Jan 6, 2023
    Configuration menu
    Copy the full SHA
    cc9e69b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c71fdfc View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: adaptive apply (tikv#14020)

    ref tikv#12842
    
    Make apply adaptive to reduce high tail latency.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Jan 6, 2023
    Configuration menu
    Copy the full SHA
    71efe9e View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. raftstore-v2: add waterfall metrics (tikv#14029)

    ref tikv#12842
    
    - add water metrics
    - fix potential panic when destroying a peer
    - fix incorrect store size
    
    Signed-off-by: Jay Lee <[email protected]>
    BusyJay authored Jan 10, 2023
    Configuration menu
    Copy the full SHA
    8e6e348 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. util: Fix incorrect memory capacity (tikv#14034)

    * util: Fix incorrect memory capacity
    
    Signed-off-by: Wish <[email protected]>
    
    * Fix lints
    
    Signed-off-by: Wish <[email protected]>
    
    * Check capacity with /proc/meminfo
    
    Signed-off-by: Wish <[email protected]>
    
    Signed-off-by: Wish <[email protected]>
    breezewish authored Jan 12, 2023
    Configuration menu
    Copy the full SHA
    528e06d View commit details
    Browse the repository at this point in the history
  2. pd_client: fix the kvproto compatibility for global config (tikv#14041)

    * hotfix kvproto for global config
    
    Signed-off-by: husharp <[email protected]>
    
    * make format happy
    
    Signed-off-by: husharp <[email protected]>
    
    Signed-off-by: husharp <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    HuSharp and ti-chi-bot authored Jan 12, 2023
    Configuration menu
    Copy the full SHA
    e1467c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. Configuration menu
    Copy the full SHA
    2daa168 View commit details
    Browse the repository at this point in the history
  2. txn: Do constraint check when handling repeated acqurie_pessimsitic_l…

    …ock request (tikv#14037)
    
    close tikv#14038, close pingcap/tidb#40114
    
    Fixes the problem that when handling repeated acquire_pessimistic_lock requests is recevied, should_not_exist is ignored. 
    
    TiKV provides idempotency for these RPC requests, but for acquire_pessimistic_lock, it ignored the possibility that the client may expect a pessimistic_rollback between two acquire_pessimistic_lock request on the same key. In this case the second request may come from another statement and carries `should_not_exist` that wasn't set in the previously finished pessimistic lock request. If the first request successfully acquired the lock and the pessimistic_rollback failed, TiKV may return a sucessful response, making the client believe that the key doesn't exist before. In some rare cases, this has risk to cause data inconsistency.
    
    Signed-off-by: MyonKeminta <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    MyonKeminta and ti-chi-bot authored Jan 13, 2023
    Configuration menu
    Copy the full SHA
    321aa83 View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: fix metrics and perf context (tikv#14035)

    ref tikv#12842
    
    This PR fixes several bugs and metrics:
    - Now waterfall timer will be reset in before_write, the goal is to solve
        the confusion that stall writes can pollute the whole waterfall metrics.
    - Perf context is changed not to be associated with engine instance. Perf
          context is thread local and instance independent under the hook.
    - Fix flushed index advance failure due to suspicious flush.
    - Support print long uncommitted logs and fix incorrect commit time
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Jan 13, 2023
    Configuration menu
    Copy the full SHA
    65a99a8 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2023

  1. raftstore-v2: cleanup txn_ext (tikv#14051)

    ref tikv#12842
    
    Move transaction related code to txn_ext.rs.
    
    Fix the bug that snapshot doesn't set term and extra_op.
    
    Signed-off-by: Jay Lee <[email protected]>
    BusyJay authored Jan 16, 2023
    Configuration menu
    Copy the full SHA
    a3c15ce View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. raftstore-v2: a few small fixes (tikv#14039)

    ref tikv#12842
    
    1) add snapshot apply metrics
    2) disable bloomfilter for raftkv-v2 for now until a proper ratio is found 
    3) disable rocksdb write stall for raftkv-v2 until the tablet flow control is fully verified.
    
    Signed-off-by: Qi Xu <[email protected]>
    
    Co-authored-by: Qi Xu <[email protected]>
    tonyxuqqi and Qi Xu authored Jan 17, 2023
    Configuration menu
    Copy the full SHA
    6d163b8 View commit details
    Browse the repository at this point in the history
  2. apply: fix witness raft log gc panic and refactor (tikv#14054)

    ref tikv#12876
    
    fix witness raft log gc panic and refactor
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    ethercflow and tabokie authored Jan 17, 2023
    Configuration menu
    Copy the full SHA
    a463db0 View commit details
    Browse the repository at this point in the history
  3. copr: support handling keyspace request (tikv#14027)

    ref tikv#12999
    
    copr: support handling keyspace request
    
    Signed-off-by: iosmanthus <[email protected]>
    iosmanthus authored Jan 17, 2023
    Configuration menu
    Copy the full SHA
    5235542 View commit details
    Browse the repository at this point in the history
  4. storage: add priority scheduling for scheduler worker (tikv#14057)

    ref tikv#13730
    
    Support priority-based scheduling for the scheduler worker pool.
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    Connor1996 and tabokie authored Jan 17, 2023
    Configuration menu
    Copy the full SHA
    e2e9f9c View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2023

  1. fix docker build (tikv#13937)

    ref tikv#11312
    
    Fix `make docker`.
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Jan 18, 2023
    Configuration menu
    Copy the full SHA
    7240e57 View commit details
    Browse the repository at this point in the history
  2. pd_client: fix the kvproto compatibility (tikv#14064)

    close tikv#14063
    
    make sure kvproto compatibility
    
    Signed-off-by: husharp <[email protected]>
    HuSharp authored Jan 18, 2023
    Configuration menu
    Copy the full SHA
    b35d4fb View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Configuration menu
    Copy the full SHA
    15445fd View commit details
    Browse the repository at this point in the history
  2. log-backup: an ad-hoc way for hot reloading TLS certs (tikv#14072)

    close tikv#14071
    
    Log backup would aware TLS certifications changing.
    
    Signed-off-by: hillium <[email protected]>
    YuJuncen authored Jan 19, 2023
    Configuration menu
    Copy the full SHA
    860fc83 View commit details
    Browse the repository at this point in the history
  3. json, copr: implement unary not for json (tikv#14070)

    close tikv#14069
    
    Signed-off-by: YangKeao <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YangKeao and ti-chi-bot authored Jan 19, 2023
    Configuration menu
    Copy the full SHA
    42c3814 View commit details
    Browse the repository at this point in the history
  4. raftstore: support switch witness (tikv#13491)

    * support switch witness
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * add switch witness api for test_pd_client
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * pd heartbeat resp support switch witness
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * update region epoch
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * fix write apply state race
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * remove unnecessary code
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * add back test_witness_conf_change
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * add some tests
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * avoid test failures
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * a few refactor
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * add witness election priority and address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * clean code
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * fix tests failed caused by cfg
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * fix test failed caused by mistake modify
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * adjust priority after snapshot persisted
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * address comments
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * notify pd after switch witness as region changed
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * define a new backoff error for witness
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * fix panic caused by applygap
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * forbid transfer leader to non-witness waiting data
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * update kvproto
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * fix two panics
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * retry request snapshot
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * retry to request snaphost after term change
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    * update kvproto comment
    
    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    Signed-off-by: Zwb <[email protected]>
    Co-authored-by: Xinye Tao <[email protected]>
    ethercflow and tabokie authored Jan 19, 2023
    Configuration menu
    Copy the full SHA
    cf62253 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2023

  1. resource_manager: add watch for resource group (tikv#14022)

    close tikv#13983
    
    - add etcd mock for pd
    - add service for resource group
    
    Signed-off-by: husharp <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    HuSharp and ti-chi-bot authored Jan 20, 2023
    Configuration menu
    Copy the full SHA
    f178f78 View commit details
    Browse the repository at this point in the history
  2. batch-system: add priority scheduling for batch system (tikv#14065)

    ref tikv#13730
    
    Support priority-based scheduling for the apply batch system.
    
    Signed-off-by: Connor1996 <[email protected]>
    Connor1996 authored Jan 20, 2023
    Configuration menu
    Copy the full SHA
    9726e56 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2023

  1. config: allow starting TiKV nodes with <1 CPU (tikv#14084)

    close tikv#13586, close tikv#13752, ref tikv#14017
    
    Signed-off-by: Andrei Dragus <[email protected]>
    andreid-db authored Jan 29, 2023
    Configuration menu
    Copy the full SHA
    c353910 View commit details
    Browse the repository at this point in the history
  2. pd_client: replace PD_REQUEST_HISTOGRAM_VEC with static metrics (tikv…

    …#14087)
    
    close tikv#14086
    
    PD_REQUEST_HISTOGRAM_VEC can be changed to use static metrics to improve performance.
    
    Signed-off-by: husharp <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    HuSharp and ti-chi-bot authored Jan 29, 2023
    Configuration menu
    Copy the full SHA
    68710b9 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. Configuration menu
    Copy the full SHA
    b1936e6 View commit details
    Browse the repository at this point in the history
  2. raftstore: allow the read request with a smaller ts during flashback (t…

    …ikv#14088)
    
    close tikv#14045
    
    - Store the flashback `start_ts` in region meta.
    - Allow the read request with a smaller ts during flashback.
    
    Signed-off-by: JmPotato <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    JmPotato and ti-chi-bot authored Jan 30, 2023
    Configuration menu
    Copy the full SHA
    0ce3485 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. import: sst_importer support download SST and rewrite into keyspace d…

    …ata. (tikv#14046)
    
    ref tikv#12999
    
    import: sst_importer support download SST and rewrite into keyspace data.
    
    Signed-off-by: iosmanthus <[email protected]>
    iosmanthus authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    7ec73fd View commit details
    Browse the repository at this point in the history
  2. rocksdb: reduce rocksdb block size to 16KB (tikv#14053)

    close tikv#14052
    
    The writecf and defaultcf's default block size is changed to 16KB to improve read performance (reduce read amplification)
    
    Signed-off-by: qi.xu <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    tonyxuqqi and qi.xu authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    ec2f4dc View commit details
    Browse the repository at this point in the history
  3. storage: add an alias partitioned-raft-kv for RaftKv2 (tikv#14083)

    ref tikv#12842
    
    add an alias partitioned-raft-kv for RaftKv2
    
    Signed-off-by: qi.xu <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    3 people authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    15d6040 View commit details
    Browse the repository at this point in the history
  4. resolved_ts: reduce network traffic by filter regions (tikv#14098)

    close tikv#14092
    
    resolved_ts: reduce network traffic by filter regions
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    23a2288 View commit details
    Browse the repository at this point in the history
  5. raftstore-v2: fix peer not cleanup when it replicates more logs (tikv…

    …#14101)
    
    ref tikv#12842
    
    If it accepts more logs than conf remove itself, applied_index == commit_index
    will never be true. So we should check if it's a tombstone already first.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Jan 31, 2023
    Configuration menu
    Copy the full SHA
    a33eb2d View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    9c0df6d View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. resource_control: unify wru/rru to ru (tikv#14121)

    close tikv#14120
    
    resource_control: unify wru/rru to ru
    
    Signed-off-by: nolouch <[email protected]>
    nolouch authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    db14c53 View commit details
    Browse the repository at this point in the history
  2. pd_client: fix item value type (tikv#14106)

    close tikv#14104
    
    We need to use the new field to support item value as bytes to avoid proto string check failures.
    
    Signed-off-by: husharp <[email protected]>
    HuSharp authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    d1d2920 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. raftstore-v2: add tablet logger and update dep (tikv#14129)

    ref tikv#12842
    
    - Update raft-engine to fix data corruption during restart
    - Add tablet logger so we can know which tablet the logs belongs to
    
    Signed-off-by: Jay Lee <[email protected]>
    BusyJay authored Feb 3, 2023
    Configuration menu
    Copy the full SHA
    3791560 View commit details
    Browse the repository at this point in the history
  2. raftstore: Observe when receive raft message (tikv#14043)

    ref tikv#13855
    
    Introduce observers when receive raft message.
    
    Signed-off-by: CalvinNeo <[email protected]>
    CalvinNeo authored Feb 3, 2023
    Configuration menu
    Copy the full SHA
    c8c1ca8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    656c983 View commit details
    Browse the repository at this point in the history
  4. raftstore-v2: support tracing peer lifetime (tikv#14056)

    ref tikv#12842, ref tikv#13818
    
    In V1, a peer is responsible to destroy itself. The design is to make leader do
    less work and reduce writes. But from the practice of the pass years, not
    making it a strong guarantee actually makes the implementation
    complicated and hard to be correct and difficult to understand.
    
    In V2, we changes to make leader the very role to make sure all removed
    peers or merged peers must be destroyed in the end. Push mode is way
    easier to understand and implement correctly. The downside is extra writes
    are introduced but it's worthy.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 3, 2023
    Configuration menu
    Copy the full SHA
    6daed4f View commit details
    Browse the repository at this point in the history
  5. raftstore: support priority scheduling for async write (tikv#14103)

    ref tikv#13730
    
    Support priority-based scheduling for the async write. Each channel of async write worker is replaced with a priority-based channel when the config `resource-control.enabled` is true.
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Connor1996 and ti-chi-bot authored Feb 3, 2023
    Configuration menu
    Copy the full SHA
    44a586f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    495abac View commit details
    Browse the repository at this point in the history
  7. tests: fix test_witness_replica_read fail (tikv#14110)

    ref tikv#12876
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ethercflow and ti-chi-bot authored Feb 3, 2023
    Configuration menu
    Copy the full SHA
    856987f View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2023

  1. tikv: optimize default config for multi-rocksdb (tikv#14107)

    ref tikv#12842
    
    set block-cache.capacity to 0.3 * memory limit instead of 0.45 for partitioned-raft-kv. 
    set region-split-size to 1GB by default when bucket is enabled 
    set region-split-size to 10GB by default when partitioned-raft-kv is enabled.
    
    These numbers may be tuned futher if we have other better results.
    
    Signed-off-by: qi.xu <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    tonyxuqqi and qi.xu authored Feb 4, 2023
    Configuration menu
    Copy the full SHA
    22202b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8484ece View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. rawkv: fix flaky integration test case test_raw_put_key_guard (tikv…

    …#14140)
    
    close tikv#14141
    
    rawkv: fix flaky integration test case `test_raw_put_key_guard`.
    
    Signed-off-by: Ping Yu <[email protected]>
    pingyu authored Feb 6, 2023
    Configuration menu
    Copy the full SHA
    14dd46d View commit details
    Browse the repository at this point in the history
  2. Integration test: use proc-macro to reuse test cases. (tikv#14133)

    ref tikv#12842
    
    Add proc-macro test_case to reuse test cases.
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    SpadeA-Tang and ti-chi-bot authored Feb 6, 2023
    Configuration menu
    Copy the full SHA
    41a89be View commit details
    Browse the repository at this point in the history
  3. raftstore, storage: return FlashbackNotPrepared error if the flashbac…

    …k commit check failed (tikv#14145)
    
    close tikv#14143, ref tikv#14143
    
    As tikv#14143 mentioned, flashback should not
    return `TxnLockNotFound` error to the client if the flashback commit check failed,
    which will cause TiDB to retry the flashback forever. This PR changes this error to
    `FlashbackNotPrepared` to match the client handling logic.
    
    Signed-off-by: JmPotato <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    JmPotato and ti-chi-bot authored Feb 6, 2023
    Configuration menu
    Copy the full SHA
    7c20add View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. raftstore: support dynamically resize the count of async ios. (tikv#1…

    …3965)
    
    close tikv#13964
    
    Support dynamically modify the count of async-ios.
    
    Signed-off-by: Lucasliang <[email protected]>
    LykxSassinator authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    2e7aede View commit details
    Browse the repository at this point in the history
  2. raftstore-v2: fix tablet gc issues (tikv#14125)

    close tikv#14115
    
    Signed-off-by: tabokie <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    tabokie and ti-chi-bot authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    26813ba View commit details
    Browse the repository at this point in the history
  3. copr: reject request when estimated waiting duration exceeds threshold (

    tikv#14077)
    
    ref tikv#14151
    
    Add a read pool time slice inspector to predict the waiting time for
    read requests. Use the estimated duration to reject requests which
    have busy_threashold.
    
    Signed-off-by: Yilin Chen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    sticnarf and ti-chi-bot authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    d083fc9 View commit details
    Browse the repository at this point in the history
  4. raftstore-v2: fix peer destroy not clear in scale-in scene (tikv#14112)

    close tikv#14128
    
    1. release tablet in TableCache after peer destroyed
    2. release tombstone tablet after applying snapshot
    
    Signed-off-by: bufferflies <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    3 people authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    10e93a7 View commit details
    Browse the repository at this point in the history
  5. apply: ignore compute and verify hash when it's a witness (tikv#14150)

    close tikv#14142
    
    apply: ignore compute and verify hash when it's a witness
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ethercflow and ti-chi-bot authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    a45c7de View commit details
    Browse the repository at this point in the history
  6. fix: ebs volume snapshot support tikv node equipped with 2 cpu or les…

    …s configuration (tikv#14153)
    
    close tikv#14017
    
    Signed-off-by: fengou1 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    fengou1 and ti-chi-bot authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    adff03c View commit details
    Browse the repository at this point in the history
  7. Increase read pool limit (tikv#13766)

    close tikv#13690
    
    * Read pool size limit is removed. It was previously hard-coded to be
      the total number of cores. Limiting the number of threads to be less
      than the number of cores reduces the chance of context switch, but
      also makes TiKV prone to starvation problem (since read pool is
      currently FIFO), even if all the queries require no IO or IO is async
      (imagining there are number_of_cores clients sending big queries, and
      another numbers of clients sending small queries concurrently to a
      single TiKV server, and all of them require no IO). Thread starvation
      causes high tail latency which is even worse than context switching.
      According to the feature requester, increasing the number of threads
      significantly improved the tail latency in their environment. Thus, we
      should remove the limit, and leave it to the users.
    
    Signed-off-by: Yang Zhang <[email protected]>
    v01dstar authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    db50ce6 View commit details
    Browse the repository at this point in the history
  8. copr: fix error when cast const Enum to any type (tikv#14149)

    close tikv#14156, close pingcap/tidb#40341
    
    copr: fix error when cast const Enum to any type
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    wshwsh12 and ti-chi-bot authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    1df793c View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Support backup replica read (tikv#13975)

    close tikv#14060
    
    Support replica read for backup
    
    Signed-off-by: Yang Zhang <[email protected]>
    v01dstar authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    98ac5d2 View commit details
    Browse the repository at this point in the history
  2. log-backup: report when watch canceled (tikv#14154)

    close tikv#14159
    
    Signed-off-by: hillium <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    1d97f4d View commit details
    Browse the repository at this point in the history
  3. engine_traits: allow chaos flush notification (tikv#14160)

    close tikv#14113
    
    `OnFlushComplete` can be called out of order. What we can assume is
    when a seqno finishes flush, all SSTs have smaller seqno must also
    finish flush.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    5a8d477 View commit details
    Browse the repository at this point in the history
  4. raftstore-v2: gc all split tablets (tikv#14169)

    close tikv#14162, close tikv#14163
    
    Force gc all split tablets by checking finish event.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    8d63c27 View commit details
    Browse the repository at this point in the history
  5. log-backup: retry for more time when failed to get snapshot(to adapt …

    …the feature witness) (tikv#14155)
    
    ref tikv#14137
    
    Signed-off-by: joccau <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    joccau and ti-chi-bot authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    eb2e416 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dda37a4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f46f386 View commit details
    Browse the repository at this point in the history
  8. log-backup: edit checkpoint to 2 hours (tikv#13894)

    ref tikv#13889
    
    Signed-off-by: hillium <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    f6513ed View commit details
    Browse the repository at this point in the history
  9. grafana: add grpc resource group QPS panel (tikv#14171)

    ref tikv#13730
    
    Add grpc resource group QPS panel and fix datasource
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Connor1996 and ti-chi-bot authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    ee00d70 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2d7bf4c View commit details
    Browse the repository at this point in the history
  11. raftstore: new slow store detecting (tikv#14000)

    ref tikv#14131
    
    PD schedulers: new scheduler `evict-slow-trend-scheduler`, for new slow store detecting and leader evicting
    
    Signed-off-by: Liu Cong <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    innerr and ti-chi-bot authored Feb 8, 2023
    Configuration menu
    Copy the full SHA
    2301dac View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. metrics: add panels showing pessimistic lock queue lengths (tikv#14158)

    ref tikv#14157
    
    Signed-off-by: ekexium <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ekexium and ti-chi-bot authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    6b6f915 View commit details
    Browse the repository at this point in the history
  2. config: disallow encryption for v2 (tikv#14190)

    ref tikv#12842
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    fcc6829 View commit details
    Browse the repository at this point in the history
  3. resource_control: pass missing resource group name to request header (t…

    …ikv#14192)
    
    close tikv#14191
    
    pass missing resource group name to request header
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    Connor1996 and tabokie authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    10c5813 View commit details
    Browse the repository at this point in the history
  4. log-backup: allow observer hibernate when there isn't any task (tikv#…

    …14018)
    
    close tikv#14012
    
    Added a "hibernate mode" for the log backup observer: while there isn't any task, it won't emit leader drop or region change events. So some verbose logs can be omitted.
    
    Signed-off-by: hillium <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    984d09a View commit details
    Browse the repository at this point in the history
  5. raftkv: allow cancel error in snapshot (tikv#14183)

    close tikv#13926
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    c5e8704 View commit details
    Browse the repository at this point in the history
  6. copr: (feat) Implement operator PartitionTopN (tikv#14116)

    ref tikv#13936
    
    Signed-off-by: Zhi Qi <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    LittleFall and ti-chi-bot authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    d513b78 View commit details
    Browse the repository at this point in the history
  7. polish the config region_split_size (tikv#14182)

    ref tikv#12842
    
    materialize the region_split_size in optimize_for
    
    Signed-off-by: qi.xu <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    3 people authored Feb 9, 2023
    Configuration menu
    Copy the full SHA
    ef09d27 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2023

  1. cdc: fix cdc integration test test_rawkv_sacn (tikv#14147)

    close tikv#14146
    
    make cdc integration test `test_rawkv_sacn` stable
    
    Signed-off-by: zeminzhou <[email protected]>
    zeminzhou authored Feb 11, 2023
    Configuration menu
    Copy the full SHA
    91b7a49 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2023

  1. read_pool: avoid get inconsistent sample sum and count from histogram (

    …tikv#14202)
    
    close tikv#14200
    
    We may get inconsistent state when calling `get_sample_sum` and
    `get_sample_count` in a non-atomic fashion. This may cause unexpected
    calculation result.
    
    This PR calls `Histogram::metric` which uses a lock inside to guarantee
    consistency. And the PR also adds protective checks to avoid dividing by zero.
    
    Signed-off-by: Yilin Chen <[email protected]>
    sticnarf authored Feb 13, 2023
    Configuration menu
    Copy the full SHA
    e05f8f3 View commit details
    Browse the repository at this point in the history
  2. *: fix tablet leak in flow control (tikv#14197)

    close tikv#14196
    
    Also add a tool to trace tablet leak.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 13, 2023
    Configuration menu
    Copy the full SHA
    61c5f1c View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: integration test (tikv#13989)

    ref tikv#12842
    
    Implement integration test framework v2
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    SpadeA-Tang and tabokie authored Feb 13, 2023
    Configuration menu
    Copy the full SHA
    c9cebe6 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Raftstore-v2: support split operator (tikv#14199)

    ref tikv#12842
    
    Support split operator got from PD.
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    SpadeA-Tang authored Feb 14, 2023
    Configuration menu
    Copy the full SHA
    c4b38e8 View commit details
    Browse the repository at this point in the history
  2. Raftstore-v2: use appropriate default region split size when integrat…

    …ion test suit start (tikv#14210)
    
    ref tikv#12842
    
    use appropriate default region split size when integration test suit start
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    Signed-off-by: Spade  A <[email protected]>
    SpadeA-Tang authored Feb 14, 2023
    Configuration menu
    Copy the full SHA
    6d17e25 View commit details
    Browse the repository at this point in the history
  3. chore: bump version to v6.7.0-alpha (tikv#14216)

    Signed-off-by: lijie <[email protected]>
    lijie authored Feb 14, 2023
    Configuration menu
    Copy the full SHA
    8e5e5ea View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. log-backup: make the download more finer-grained (tikv#14203)

    close tikv#14206
    
    Signed-off-by: hillium <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Feb 15, 2023
    Configuration menu
    Copy the full SHA
    54c5ec7 View commit details
    Browse the repository at this point in the history
  2. raftstore-v2: fix wrong peer cache (tikv#14212)

    close tikv#14211
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 15, 2023
    Configuration menu
    Copy the full SHA
    ff0a79b View commit details
    Browse the repository at this point in the history
  3. limit should await (tikv#14222)

    close tikv#14221
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Feb 15, 2023
    Configuration menu
    Copy the full SHA
    c072027 View commit details
    Browse the repository at this point in the history
  4. causal_ts: simplify the logic of pop ts (tikv#14227)

    ref tikv#12794
    
    Signed-off-by: glorv <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    glorv and ti-chi-bot authored Feb 15, 2023
    Configuration menu
    Copy the full SHA
    13c2e54 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. Raftstore-v2: snap status should be cleared when sending snapshot fai…

    …led (tikv#14230)
    
    ref tikv#12842
    
    snap status should be cleared when sending snapshot failed
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    SpadeA-Tang and tabokie authored Feb 16, 2023
    Configuration menu
    Copy the full SHA
    3df8a7a View commit details
    Browse the repository at this point in the history
  2. Revise CONTRIBUTING.md contents (tikv#14032)

    close tikv#14031
    
    Signed-off-by: woofyzhao <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    woofyzhao and ti-chi-bot authored Feb 16, 2023
    Configuration menu
    Copy the full SHA
    c6aa5e3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bbe06e9 View commit details
    Browse the repository at this point in the history
  4. cdc: filter changes based on the range in request (tikv#14213)

    close pingcap/tiflow#6346, close tikv#10073
    
    cdc: filter changes based on the range in request
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Feb 16, 2023
    Configuration menu
    Copy the full SHA
    7a04500 View commit details
    Browse the repository at this point in the history
  5. raftstore-v2: fix destroy blocked by apply progress (tikv#14223)

    close tikv#14215
    
    If a peer is marked for destroy, it will skip all apply result, which
    will make it never apply to committed index. This PR relaxes the check
    to last_applying_index and always process apply result.
    
    It also fixes a bug that new peer created by large ID may not survive
    restart.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 16, 2023
    Configuration menu
    Copy the full SHA
    c5ce165 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2023

  1. raftstore-v2: impl report buckets (tikv#14044)

    ref tikv#12842
    
    1. implement bucket split and report to pd
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Feb 17, 2023
    Configuration menu
    Copy the full SHA
    e784a50 View commit details
    Browse the repository at this point in the history
  2. raftstore,resolved_ts: advance resolved ts as needed (tikv#14123)

    close tikv#13110, close tikv#14122, close pingcap/tidb#40903
    
    Fix an issue that stale read fails when a leader is slowly.
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Co-authored-by: Jay <[email protected]>
    3 people authored Feb 17, 2023
    Configuration menu
    Copy the full SHA
    07b2bde View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2023

  1. rocksdb: reduce rocksdb block size to 32KB (tikv#14053) (tikv#14244)

    close tikv#14052
    
    Because of memory fragment issue 16KB causes, we change it to 32KB and the result shows there's no significant memory fragment.
    
    Signed-off-by: qi.xu <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    tonyxuqqi and qi.xu authored Feb 18, 2023
    Configuration menu
    Copy the full SHA
    728511e View commit details
    Browse the repository at this point in the history
  2. config: increase resolved-ts.advance-ts-interval to 20s (tikv#14136)

    close tikv#14100
    
    Save network traffic by increasing resolved-ts.advance-ts-interval
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Feb 18, 2023
    Configuration menu
    Copy the full SHA
    b82036e View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. pd_client: add some function to buckets (tikv#14239)

    close tikv#14240
    
    1. add `from_meta` constructor 
    2. add `merge` to merge delta flow
    3. add `add_flow` to add flow for given key range
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Feb 21, 2023
    Configuration menu
    Copy the full SHA
    1216d5e View commit details
    Browse the repository at this point in the history
  2. Raftstore-v2: update peer state after persisting snapshot (tikv#14248)

    ref tikv#12842
    
    Update peer state after persisting snapshot
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    SpadeA-Tang authored Feb 21, 2023
    Configuration menu
    Copy the full SHA
    9a91e60 View commit details
    Browse the repository at this point in the history
  3. read_pool: avoid tail latency of spawning (tikv#14207)

    ref tikv#14118, close tikv#14188
    
    Each multilevel/priority pool maintains an internal map for tracking the
    elapsed time of running tasks. Previously we try to cleanup the map
    every 10s on spawning new tasks, which leads to the tail latency issue
    described in tikv#14118.
    
    This PR tries to resolve the issue by spawning a background task for
    cleaning up the map.
    
    Signed-off-by: zyguan <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    zyguan and ti-chi-bot authored Feb 21, 2023
    Configuration menu
    Copy the full SHA
    061d874 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. integration test v2: strip off the data prefix when getting the regio…

    …n id when necessary (tikv#14235)
    
    ref tikv#12842
    
    strip off the data prefix when getting the region id when necessary
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    SpadeA-Tang authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    e247c76 View commit details
    Browse the repository at this point in the history
  2. raftstore-v2: prepare merge (tikv#14226)

    ref tikv#12842, ref tikv#13818
    
    Implement prepare merge for raftstore-v2
    
    Signed-off-by: tabokie <[email protected]>
    Signed-off-by: Xinye Tao <[email protected]>
    tabokie authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    13eb4f6 View commit details
    Browse the repository at this point in the history
  3. *: enable bucket automatically if region size is large enough (tikv#1…

    …4255)
    
    ref tikv#12842
    
    So that it's easier to use v2.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    e99ebbc View commit details
    Browse the repository at this point in the history
  4. raftstore-v2: consider None when getting mailbox (tikv#14234)

    ref tikv#12842, close tikv#14233
    
    consider None when getting mailbox
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    SpadeA-Tang authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    6ea9c3a View commit details
    Browse the repository at this point in the history
  5. copr: early stop paging copr when resultset is drained. (tikv#14209)

    close tikv#14254
    
    When the result set is drained, it indicates that no more data is required in the range.
    This PR set the scanned range to None to avoid the following paging requests in the current range.
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    you06 and ti-chi-bot authored Feb 22, 2023
    Configuration menu
    Copy the full SHA
    a675ca8 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. *: update openssl-src version to fix CVE-2023-0286 (tikv#14258)

    close tikv#14257
    
    Upgrade openssl-src version to fix CVE-2023-0286.
    
    Signed-off-by: cosven <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    cosven and ti-chi-bot authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    0368d0a View commit details
    Browse the repository at this point in the history
  2. integration test v2: report snapshot status after sending (tikv#14252)

    ref tikv#12842
    
    report snapshot status after sending
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    SpadeA-Tang and ti-chi-bot authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    f0af6ff View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

  1. coprocessor: avoid unnecessary vec allocation in collect_column_stats (

    …tikv#14280)
    
    ref tikv#14231
    
    When collect_column_stats handles each row, reuse column_vals and collation_key_vals to avoid allocating many small objects.
    
    Signed-off-by: xuyifan <[email protected]>
    xuyifangreeneyes authored Feb 26, 2023
    Configuration menu
    Copy the full SHA
    5f5bb76 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. raftstore-v2: update region state in apply_snapshot (tikv#14279)

    ref tikv#12842
    
    update region state in apply_snapshot
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    SpadeA-Tang and tabokie authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    b4da741 View commit details
    Browse the repository at this point in the history
  2. impl buckets flow report (tikv#14238)

    ref tikv#12842, ref tikv#14044
    
    collect bucket flow:
    - write/read flow include keys and bytes not include qps
    
    Signed-off-by: bufferflies <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    3 people authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    6a906da View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2023

  1. log_backup: move all download request into the same runtime (tikv#14286)

    ref hyperium/hyper#2112, close tikv#14285
    
    Download tasks will executed in a tiny runtime for now.
    
    Signed-off-by: hillium <[email protected]>
    YuJuncen authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    de78be9 View commit details
    Browse the repository at this point in the history
  2. importer: use kv engine instead of raw API (tikv#14294)

    ref tikv#12842
    
    So that it can support both v1 and v2.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    192dff6 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. raft_client: report SnapshotStatus for witness (tikv#14267)

    close tikv#14228
    
    raft_client: report SnapshotStatus for witness
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ethercflow and ti-chi-bot authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    76bbf95 View commit details
    Browse the repository at this point in the history
  2. tablet_flow_control polish (tikv#14232)

    ref tikv#12842
    
    1) Remove the suffix parameter in tablet flow control code as it's not needed anymore by using the FlowControlFactorStore.
    2) Before this change, it the tablet flow control may not work properly because of unnecessarily checking the suffix value.
    3) Fix the scheduler flow's metrics for multi-rocksdb
    
    Signed-off-by: qi.xu <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    tonyxuqqi and qi.xu authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    f3cb8ed View commit details
    Browse the repository at this point in the history
  3. pd_client_v2: fix version race (tikv#14310)

    close tikv#14309
    
    Version should be updated before broadcast updates, otherwise the
    update will be just ignore.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    b550868 View commit details
    Browse the repository at this point in the history
  4. copr: fix paging stop early unexpectedly with agg executors (tikv#14292)

    ref tikv#14209, close tikv#14291
    
    tikv#14209 stop paging when the result set is drained. But when supporting agg paging,
    the executors will also return drained when there is enough data returned.
    This PR label the drain reasons and stop following paging when the resultset is really drained.
    
    Signed-off-by: you06 <[email protected]>
    
    Co-authored-by: Liqi Geng <[email protected]>
    you06 and gengliqi authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    ddb4e72 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. file_system: initialize io stats sentinel on thread start (tikv#14319)

    ref tikv#10867
    
    Fix thread I/O not monitored if I/O type isn't set.
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    1208135 View commit details
    Browse the repository at this point in the history
  2. integration test v2: introduce TestRaftKv2 (tikv#14300)

    ref tikv#12842
    
    introduce TestRaftKv2
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    SpadeA-Tang and tabokie authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    b050f07 View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: reduce file count (tikv#14318)

    close tikv#14306, close tikv#14316, close tikv#14324
    
    Compaction guard is disabled in v2, which will use 8MiB for file size. We need
    set multiplier to reduce sst file count.
    
    This PR also fixes a race between region creation and destroy.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    69dba51 View commit details
    Browse the repository at this point in the history
  4. sst_importer: add wire extra bytes into the packed size (tikv#14312)

    close tikv#14313
    
    Signed-off-by: hillium <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    YuJuncen and tabokie authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    4f2430d View commit details
    Browse the repository at this point in the history
  5. raftstore-v2: store heartbeat supports write keys and bytes. (tikv#14271

    )
    
    ref tikv#12842
    
    1. store heartbeat supports write keys and bytes.
    
    Signed-off-by: bufferflies <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    bufferflies and ti-chi-bot authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    d74fd13 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2023

  1. raftstore-v2: add some missing metrics (tikv#14326)

    ref tikv#12842
    
    None
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    8bfa12d View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Configuration menu
    Copy the full SHA
    199e63f View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. metrics: add some metrics for snapshot-v2 (tikv#14195)

    ref tikv#12842
    
    1. add snapshot size metrics 
    2. add snapshot send/recv count metrics
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    38568e4 View commit details
    Browse the repository at this point in the history
  2. resource_control: enable by default (tikv#14354)

    close tikv#14353
    
    resource_control: enable resource control by default
    
    Signed-off-by: nolouch <[email protected]>
    nolouch authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    bb6f5e8 View commit details
    Browse the repository at this point in the history
  3. Metrics: add snapshot transport to grafana (tikv#14337)

    ref tikv#13409
    
    Signed-off-by: bufferflies <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    bufferflies and ti-chi-bot authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    3b56cfb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0249022 View commit details
    Browse the repository at this point in the history
  5. txn: Well-defined behavior of allow_lock_with_conflict with should_no…

    …t_exist or lock_if_exists (tikv#14330)
    
    close tikv#14293
    
    Signed-off-by: MyonKeminta <[email protected]>
    Signed-off-by: MyonKeminta <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Co-authored-by: cfzjywxk <[email protected]>
    Co-authored-by: ekexium <[email protected]>
    4 people authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    32925ca View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. raftstore-v2: consider None when getting mailbox (tikv#14348)

    close tikv#14347
    
    consider None when getting mailbox
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    SpadeA-Tang authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    404c777 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e186703 View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: use larger target file size (tikv#14361)

    ref tikv#14352
    
    Use the same target file size as if compaction guard is enabled.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    c4bc6d9 View commit details
    Browse the repository at this point in the history
  4. importer: support raftstore v2 (tikv#14305)

    ref tikv#12842
    
    A few behavior changes:
    - In v2, normal mode is always used, trying to switch to import mode will get error response.
    - A context is added to compact range request. If not compact with region ID, the request will be rejected.
    - SSTs are cleaned up immediately if its corresponding regions doesn't exist on the store anymore.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    cc72dc9 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. raftstore: fix incorrect cond judgment leading to rejection of pre_pr…

    …oposal (tikv#14283)
    
    close tikv#14219
    
    raftstore: fix incorrect cond judgment leading to rejection of pre_proposal
    
    Signed-off-by: Wenbo Zhang <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ethercflow and ti-chi-bot authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    0aa9e14 View commit details
    Browse the repository at this point in the history
  2. integration test v2: mvcc resolve lock gc test (tikv#14360)

    ref tikv#12842
    
    mvcc resolve lock gc test for v2
    
    Signed-off-by: Spade A <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    3 people authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    82ac84b View commit details
    Browse the repository at this point in the history
  3. server: support sending incremental snapshot (tikv#14275)

    ref tikv#14256
    
    This PR tries to reduce the bandwidth consumption by utilizing local tablet.
    If a file already exists in the local tablet, it will be skipped.
    
    This PR also fixes a race of receiving snapshot.
    
    Signed-off-by: Jay Lee <[email protected]>
    BusyJay authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    6342e0e View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2023

  1. Configuration menu
    Copy the full SHA
    64a41f0 View commit details
    Browse the repository at this point in the history
  2. *: more accurate time detail in kv response (tikv#14358)

    close tikv#14262
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    glorv and ti-chi-bot authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    fc9cf09 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. raftstore-v2: fix ingest codec (tikv#14373)

    ref tikv#12842
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    ee57a81 View commit details
    Browse the repository at this point in the history
  2. log-backup: added intervally resolve regions (tikv#14180)

    ref tikv#13638
    
    This PR added a “two phase” flush to log backup for reducing checkpoint lag.
    Generally, we added a `MinTs` task, where resolve the regions and advance the `resolved_ts` in the checkpoint manager.
    then, once we are doing flush, we would make current `resolved_ts` become `checkpoint_ts`.
    This allows us to advance checkpoint_ts even the leader has gone. When the leader changes frequently, this can greatly reduce checkpoint lag.
    
    Signed-off-by: hillium <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    571e513 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. server: Record the duration of executing the snapshot and feedback to…

    … PD Server (tikv#13410)
    
    close tikv#13409
    
    1. collect the duration of generating and sending snapshot 
    2. records the the total duration between receiving the snapshot task and finish to sending all snapshot .
    3. report the metrics to the pd server.
    
    Signed-off-by: bufferflies <[email protected]>
    
    Co-authored-by: Ping Yu <[email protected]>
    bufferflies and pingyu authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    dcd15ae View commit details
    Browse the repository at this point in the history
  2. raftstore: optimize write priority scheduling path (tikv#14335)

    ref tikv#14353
    
    Optimize write priority scheduling path including:
    - replace `DashMap` with `RwLock` in the resource controller 
    - use visit pattern for consuming msg resource to avoid constructing hashmap
    - introduce `ParsedEntry` to avoid parsing raft command from entry data repeatedly in different places
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Connor1996 and ti-chi-bot authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    852af46 View commit details
    Browse the repository at this point in the history
  3. txn: add more logs for panic (tikv#14394)

    ref tikv#14390
    
    Signed-off-by: Jay Lee <[email protected]>
    BusyJay authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    6f85355 View commit details
    Browse the repository at this point in the history
  4. storage: Fix flow controller pending compaction bytes always be zero (t…

    …ikv#14393)
    
    close tikv#14392
    
    Fix the issue that flow control may not work when pending compaction bytes is high.
    
    If the pending compaction bytes is 0, then 0.log2() is -INF which would cause the later
    average always be zero even if the pending compaction bytes is already high.
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Connor1996 and ti-chi-bot authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    c3e1cfb View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2023

  1. log-backup: Fix sub tracking (tikv#14185)

    close tikv#14184
    
    Signed-off-by: hillium <[email protected]>
    YuJuncen authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    bff6695 View commit details
    Browse the repository at this point in the history
  2. raftstore-v2: add some logs and fix possible race between clean and t…

    …ick (tikv#14399)
    
    ref tikv#14386
    
    None
    
    Signed-off-by: tabokie <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    tabokie and ti-chi-bot authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    09cd29f View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: filter read index msg when sending from self (tikv#14396)

    close tikv#14388
    
    filter read index msg when sending from self
    
    Signed-off-by: Spade A <[email protected]>
    SpadeA-Tang authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    21ef364 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. raft-log-engine: supply prefill-for-recycle configuration to enable…

    … starting engine in cold state. (tikv#14372)
    
    close tikv#14371
    
    Adds a new configuration `raft-engine.prefill-for-recycle` for supporting to enable log recycling when starting TiKV in cold state.
    LykxSassinator authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    eb4ad72 View commit details
    Browse the repository at this point in the history
  2. Revert changes that may cause performance regression introduced by wr…

    …ite prioirty scheduling (tikv#14412)
    
    close tikv#14375
    
    Revert the parsed entry that may lead to performance regression and disable priority pool for sched worker
    
    Signed-off-by: Connor1996 <[email protected]>
    Connor1996 authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    315d402 View commit details
    Browse the repository at this point in the history
  3. engine: enable log recycling by default (tikv#14380)

    close tikv#14379
    
    Enable log recycling in `RaftLogEngine` by default
    
    Signed-off-by: Lucasliang <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    LykxSassinator and ti-chi-bot authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    b9bc478 View commit details
    Browse the repository at this point in the history
  4. raftstore-v2: split init may be out of dated when conf change ocurred (

    …tikv#14407)
    
    close tikv#14389
    
    split init may be out of dated
    
    Signed-off-by: Spade A <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    SpadeA-Tang and tabokie authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    fd2db9a View commit details
    Browse the repository at this point in the history
  5. raftstore-v2: remove flashback context (tikv#14404)

    ref tikv#12842, ref tikv#14405
    
    Flashback is not fully implemented for raftkv2, setting fields may
    lead to request failure in normal cases due to tikv#14405.
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    138e1cd View commit details
    Browse the repository at this point in the history
  6. tikv-ctl,raftstore: add a log to output corrupted raft msg (tikv#13669)

    ref tikv#13668
    
    Signed-off-by: glorv <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    glorv and ti-chi-bot authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    4baf9e7 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2023

  1. readpool: fix missing metric tikv_yatp_task_poll_duration (tikv#14423)

    close tikv#14424
    
    Fix the missing metric `tikv_yatp_task_poll_duration` by upgrading yatp.
    
    Signed-off-by: you06 <[email protected]>
    you06 authored Mar 19, 2023
    Configuration menu
    Copy the full SHA
    bec4034 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2023

  1. resource_control: Introduce resource group priority (tikv#14414)

    ref tikv#13730
    
    Introduce resource group priority, tasks are scheduled based on the order of (priority, virtual_time)
    
    Signed-off-by: Connor1996 <[email protected]>
    Connor1996 authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    63d82f3 View commit details
    Browse the repository at this point in the history
  2. PITR: support modifying the config tikv.import.memory-use-ratio onlin…

    …e when restore point. (tikv#14408)
    
    close tikv#14409
    
    Signed-off-by: joccau <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    joccau and ti-chi-bot authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    7b1fe9d View commit details
    Browse the repository at this point in the history
  3. grafana: fix grafana display anomaly (tikv#14428)

    close tikv#14427
    
    Fix grafana display anomaly.
    The `pessimistic lock activities` panel's id is the same as that of  `gRPC resource group QPS` panel
    which makes grafana display anomaly. So change the duplicated id.
    
    Signed-off-by: Connor1996 <[email protected]>
    Connor1996 authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    4dc1a5a View commit details
    Browse the repository at this point in the history
  4. feat: bump version to 7.1.0-alpha (tikv#14431)

    Signed-off-by: lijie <[email protected]>
    lijie authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    5a8f970 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. Configuration menu
    Copy the full SHA
    27f4d8c View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. storage: fix the apply write wal tracking time (tikv#14444)

    ref tikv#12362
    
    Fix the returned apply write wal tracking time.
    
    Signed-off-by: cfzjywxk <[email protected]>
    cfzjywxk authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    4b2dda4 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. raftstore-v2: commit merge (tikv#14253)

    ref tikv#12842, ref tikv#13818
    
    Implement commit merge for raftstore-v2
    
    Signed-off-by: tabokie <[email protected]>
    
    Co-authored-by: tonyxuqqi <[email protected]>
    tabokie and tonyxuqqi authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    ffaf486 View commit details
    Browse the repository at this point in the history
  2. raftstore-v2: flush memtable before proposing split (tikv#14437)

    close tikv#14447
    
    flush memtable before proposing split
    
    Signed-off-by: SpadeA-Tang <[email protected]>
    SpadeA-Tang authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    7ab1702 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. snapshot: feedback multi rocksdb (tikv#14400)

    close tikv#14436
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Mar 27, 2023
    Configuration menu
    Copy the full SHA
    6d4f40c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88eb52d View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. raftstore-v2: implement snapshot backup for raftstore v2 (tikv#14438)

    ref tikv#12842
    
    Signed-off-by: 3pointer <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    3pointer and ti-chi-bot authored Mar 28, 2023
    Configuration menu
    Copy the full SHA
    c930237 View commit details
    Browse the repository at this point in the history
  2. config: fix alias name snap-max-write-bytes-per-sec (tikv#14463)

    close tikv#14455
    
    Signed-off-by: Jay Lee <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Mar 28, 2023
    Configuration menu
    Copy the full SHA
    5a2ff32 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. fix io breakdown for foreground write (tikv#14456)

    ref tikv#12842
    
    async io thread's write should be foreground write
    
    Signed-off-by: qi.xu <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    tonyxuqqi and qi.xu authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    9eeda14 View commit details
    Browse the repository at this point in the history
  2. log-backup: Using PD as metastore (tikv#14278)

    close tikv#13867
    
    This also makes `etcd-client` and `tonic` optional requirements, you can enable them by `metastore-etcd`.
    
    Signed-off-by: hillium <[email protected]>
    Signed-off-by: Yu Juncen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    f8bf08c View commit details
    Browse the repository at this point in the history
  3. pitr: support modifying the config tikv.log-backup.max-flush-interval…

    … online. (tikv#14425)
    
    close tikv#14433
    
    Signed-off-by: joccau <[email protected]>
    Signed-off-by: Zak Zhao <[email protected]>
    
    Co-authored-by: 山岚 <[email protected]>
    joccau and YuJuncen authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    6f0f814 View commit details
    Browse the repository at this point in the history
  4. txn: record the latch wait, flow control throttle, quota delay and sc…

    …heduler process duration (tikv#14476)
    
    ref tikv#12362
    
    Signed-off-by: cfzjywxk <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    cfzjywxk and ti-chi-bot authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    d269912 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. sst_import: make apply asynchronous (tikv#14363)

    ref tikv#13848
    
    Signed-off-by: hillium <[email protected]>
    Signed-off-by: Yu Juncen <[email protected]>
    YuJuncen authored Mar 30, 2023
    Configuration menu
    Copy the full SHA
    7e6dac4 View commit details
    Browse the repository at this point in the history
  2. server: Introduce a common layer between server and server2 (tikv#14395)

    ref tikv#14401
    
    server: Introduce a common layer between server and server2
    
    Signed-off-by: CalvinNeo <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    CalvinNeo and ti-chi-bot authored Mar 30, 2023
    Configuration menu
    Copy the full SHA
    e0d25f9 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. raftstore-v2: change log level (tikv#14500)

    ref tikv#12842
    
    Signed-off-by: Spade A <[email protected]>
    SpadeA-Tang authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    ee13695 View commit details
    Browse the repository at this point in the history
  2. engine: update raft-engine (tikv#14495)

    close tikv#14468
    
    Update the dependency to `raft-engine` lib, to fix the bug that the size of `prefill-for-recycle` is not adaptive to dynamic regions.
    
    Signed-off-by: Lucasliang <[email protected]>
    LykxSassinator authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    d42aa0b View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2023

  1. Parameterize Simulator and Cluster in test_raftstore-v2 (tikv#14493)

    ref tikv#14401
    
    Simulator and Cluster in test_raftstore-v2
    
    Signed-off-by: CalvinNeo <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    CalvinNeo and tabokie authored Apr 4, 2023
    Configuration menu
    Copy the full SHA
    503174b View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. raftstore-v2: thread name fix (tikv#14461)

    ref tikv#12842
    
    Signed-off-by: Spade A <[email protected]>
    SpadeA-Tang authored Apr 6, 2023
    Configuration menu
    Copy the full SHA
    b778db2 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2023

  1. server, test: Refactor NodeCluster and ServerCluster (tikv#14512)

    ref tikv#14401
    
    Parameterize NodeCluster and ServerCluster
    
    Signed-off-by: CalvinNeo <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    CalvinNeo and tabokie authored Apr 7, 2023
    Configuration menu
    Copy the full SHA
    f1d2de3 View commit details
    Browse the repository at this point in the history
  2. cdc: batch send resolved ts exponentially to speed up TiCDC resolve l…

    …ock (tikv#14465)
    
    close pingcap/tiflow#8561, ref tikv#11993
    
    cdc: batch send resolved ts exponentially to speed up TiCDC resolve lock
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Apr 7, 2023
    Configuration menu
    Copy the full SHA
    83ce091 View commit details
    Browse the repository at this point in the history
  3. tikv_util: cgroup path parsing fix (tikv#14537)

    close tikv#14538
    
    Signed-off-by: Spade A <[email protected]>
    SpadeA-Tang authored Apr 7, 2023
    Configuration menu
    Copy the full SHA
    4199ed9 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2023

  1. [raftstore-v2]: check apply_scheduler before using in on_refresh_regi…

    …on_buckets (tikv#14526)
    
    close tikv#14506
    
    check apply_scheduler before using it in on_refresh_region_buckets.
    This is to solve the race condition when the peer is just created by split meanwhile a refresh bucket is called immediately.
    
    Signed-off-by: tonyxuqqi <[email protected]>
    
    Co-authored-by: buffer <[email protected]>
    tonyxuqqi and bufferflies authored Apr 8, 2023
    Configuration menu
    Copy the full SHA
    abb672b View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2023

  1. log-backup: use conservativer batch strategy (tikv#14490)

    close tikv#14313
    
    Signed-off-by: hillium <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    YuJuncen and tabokie authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    68298d8 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. log-backup: eliminate some verbose logs (tikv#14454)

    close tikv#14453, ref tikv#14453
    
    Signed-off-by: hillium <[email protected]>
    Signed-off-by: 山岚 <[email protected]>
    
    Co-authored-by: qupeng <[email protected]>
    Co-authored-by: Jianjun Liao <[email protected]>
    3 people authored Apr 11, 2023
    Configuration menu
    Copy the full SHA
    6433784 View commit details
    Browse the repository at this point in the history
  2. log-backup: make initial scanning more robust (tikv#14403)

    close tikv#14451
    
    Signed-off-by: hillium <[email protected]>
    Signed-off-by: 山岚 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Apr 11, 2023
    Configuration menu
    Copy the full SHA
    e61b51d View commit details
    Browse the repository at this point in the history
  3. *: register cdc/resolved_ts endpoint in server2 (tikv#14543)

    ref tikv#14542
    
    Register cdc/resolved_ts endpoint in server2
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Apr 11, 2023
    Configuration menu
    Copy the full SHA
    9a073f2 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. Configuration menu
    Copy the full SHA
    ba80598 View commit details
    Browse the repository at this point in the history
  2. server2: disable cdc and resolved_ts as they are not fully implemented (

    tikv#14560)
    
    ref tikv#14542
    
    Disable cdc and resolved_ts as they are not fully implemented
    
    Signed-off-by: Neil Shen <[email protected]>
    overvenus authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    a4f995f View commit details
    Browse the repository at this point in the history
  3. txn: Support check for_update_ts when prewriting (tikv#14492)

    ref tikv#14311
    
    Supports checking for_update_ts for specific keys during prewrite to avoid potential lost update that might be caused by allowing locking with conflict.
    
    Signed-off-by: MyonKeminta <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    MyonKeminta and ti-chi-bot authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    3630ba9 View commit details
    Browse the repository at this point in the history
  4. resource_control: fix virtual time overflow (tikv#14509)

    close tikv#14507
    
    Signed-off-by: glorv <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    glorv and ti-chi-bot authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    61380e3 View commit details
    Browse the repository at this point in the history
  5. txn: return duration_to_last_update when lock wait timeout (tikv#14499)

    close tikv#14497
    
    When a timeout occurs during waiting for a lock, provide the duration of time that has passed since the last update of the lock wait. 
    Let the client decide whether it is necessary to resolve locks based on this info.
    
    Signed-off-by: ekexium <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ekexium and ti-chi-bot authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    515bebb View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. raftstore-v2: implement CaptureChange and LeaderCallback (tikv#14558)

    ref tikv#14542
    
    raftstore-v2: implement CaptureChange and LeaderCallback
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Apr 14, 2023
    Configuration menu
    Copy the full SHA
    b9ca84e View commit details
    Browse the repository at this point in the history
  2. Move simple write into raftstore (tikv#14544)

    ref tikv#14575
    
    Move simple write into raftstore
    
    Signed-off-by: CalvinNeo <[email protected]>
    CalvinNeo authored Apr 14, 2023
    Configuration menu
    Copy the full SHA
    51b5613 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. importer: added grafana for point in time restore. (tikv#14564)

    close tikv#14573
    
    Signed-off-by: Yu Juncen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    YuJuncen and ti-chi-bot authored Apr 17, 2023
    Configuration menu
    Copy the full SHA
    a693d63 View commit details
    Browse the repository at this point in the history
  2. txn: Let commit rollback pessimistic lock instead of committing as Wr…

    …iteType::Lock (tikv#14557)
    
    close tikv#14551
    
    Changes the behavior of `commit` meeting pessimistic lock, from committing as WriteType::Lock to rolling-back. It's correct considering that the key is nolonger part of that transaction. This change fixes the problem that stale pessimistic lock requests with force-locking enabled (which is used by TiDB in fair-locking mode) may overwrite the commit record of another transaction and cause data loss.
    
    Signed-off-by: MyonKeminta <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    MyonKeminta and ti-chi-bot authored Apr 17, 2023
    Configuration menu
    Copy the full SHA
    58986c7 View commit details
    Browse the repository at this point in the history
  3. raftstore: enable v1 to receive snapshot from v2 (tikv#14559)

    ref tikv#14579
    
    enable v1 to receive snapshot from v2
    
    Signed-off-by: Spade A <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    SpadeA-Tang and ti-chi-bot authored Apr 17, 2023
    Configuration menu
    Copy the full SHA
    3bf3121 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. raftstore: fix snap manager init (tikv#14591)

    ref tikv#14579
    
    fix snap manager init
    
    Signed-off-by: Spade A <[email protected]>
    SpadeA-Tang authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    9047705 View commit details
    Browse the repository at this point in the history
  2. *: support observe apply in raftstore v2 (tikv#14562)

    ref tikv#14542
    
    *: support observe apply in raftstore v2
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    dee4649 View commit details
    Browse the repository at this point in the history
  3. raftstore-v2: schedule raft tick after apply snapshot (tikv#14550)

    ref tikv#14532, close tikv#14548
    
    schedule raft tick after apply snapshot
    
    Signed-off-by: Spade A <[email protected]>
    SpadeA-Tang authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    e024556 View commit details
    Browse the repository at this point in the history
  4. update storage.engine config to actual engine type used in existing c…

    …luster (tikv#14541)
    
    ref tikv#12842
    
    update storage.engine config to actual engine type used in existing cluster
    
    Signed-off-by: tonyxuqqi <[email protected]>
    tonyxuqqi authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    8dd75f8 View commit details
    Browse the repository at this point in the history
  5. txn: round up last_update_duration_ms (tikv#14571)

    ref tikv#14497
    
    Round up last_update_duration_ms, so that duration in (0, 1ms] won't be treated as 0.
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    ekexium and ti-chi-bot authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    0c113a6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9fc8663 View commit details
    Browse the repository at this point in the history
  7. *: correct io type for raft engine write and purge (tikv#14578)

    ref tikv#14462
    
    so background purge can be rate limited.
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    BusyJay and ti-chi-bot authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    58ed39a View commit details
    Browse the repository at this point in the history
  8. encryption: fix key collision handling (tikv#14586)

    close tikv#14585
    
    Fix a bug that a newly generated encryption key might erase an old key and make data unreadable
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    a4a2879 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. sched_pool: auto switch between the single queue and priority queue (t…

    …ikv#14582)
    
    ref tikv#14353, ref tikv#14375
    
    Addresses performance regression in the priority queue caused by design. The scheduler worker will now automatically switch between the `single-queue pool` and `priority-queue pool` based on the resource group settings.
    -  Once the group is reserved, use the `single-queue pool`
    -  Once the group is customized, use the `priority-queue pool`
    
    Signed-off-by: nolouch <[email protected]>
    nolouch authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    a473cb3 View commit details
    Browse the repository at this point in the history
  2. fix engine type config on existing cluster (tikv#14603)

    ref tikv#12842
    
    Adjust engine type config before running tikv server. Otherwise it will be too late. 
    Fix some other compile warnings.
    
    Signed-off-by: qi.xu <[email protected]>
    Signed-off-by: tonyxuqqi <[email protected]>
    
    Co-authored-by: qi.xu <[email protected]>
    tonyxuqqi and qi.xu authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    7d77863 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dd8322c View commit details
    Browse the repository at this point in the history
  4. snapshot-v2: delete idle snapshot file (tikv#14590)

    close tikv#14581
    
    1. change `delete_snapshot` to delete some snapshot directory those has same region_id and to_peer_id
    2. the delete_snapshot will be happened in peer destory or send_snapshot finished.
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    a4000f6 View commit details
    Browse the repository at this point in the history
  5. raftstore-v2: memtable pre-flush should be async (tikv#14567)

    ref tikv#14566
    
    memtable pre-flush should be async
    
    Signed-off-by: Spade A <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    Co-authored-by: Ti Chi Robot <[email protected]>
    3 people authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    fdc01d1 View commit details
    Browse the repository at this point in the history
  6. raftstore-v2: add capture tests (tikv#14587)

    ref tikv#14542
    
    raftstore-v2: add capture tests
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    56f5d93 View commit details
    Browse the repository at this point in the history
  7. rafstore-v2: fill start and end keys for initial messages (tikv#14607)

    close tikv#14606
    
    rafstore-v2: fill start and key for initial messages
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    overvenus and ti-chi-bot authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    5ef9d8a View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. resource_control: take global resource consumption into consideration (

    …tikv#14605)
    
    close tikv#14604
    
    resource control takes global resource consumption into consideration
    
    Signed-off-by: Connor1996 <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Connor1996 and ti-chi-bot authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    32b2a88 View commit details
    Browse the repository at this point in the history
  2. chore: bump version to v7.2.0-alpha (tikv#14615)

    Signed-off-by: lijie <[email protected]>
    lijie authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    21a98d8 View commit details
    Browse the repository at this point in the history
  3. engine: add configurations for filter enhancements (tikv#14527)

    ref tikv#12842
    
    Add some configurations for RocksDB filter enhancements
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    4b5846f View commit details
    Browse the repository at this point in the history
  4. raftstore-v2: support renaming encrypted dir (inefficiently) and batc…

    …h importing data keys (tikv#14583)
    
    ref tikv#12842, ref tikv#14095, ref tikv#14097
    
    support renaming encrypted dir (inefficiently) and batch importing data keys
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    3867b95 View commit details
    Browse the repository at this point in the history
  5. raftstore-v2: adapt backup stream for raftstore-v2 (tikv#14589)

    ref tikv#14614
    
    Signed-off-by: 3pointer <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    3pointer and ti-chi-bot authored Apr 20, 2023
    Configuration menu
    Copy the full SHA
    ac7f148 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. raftstore-v2: report sending/recving count (tikv#14617)

    close tikv#14581
    
    store heartbeat will report sending/recving count to the pd .
    
    Signed-off-by: bufferflies <[email protected]>
    bufferflies authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    dcf7f05 View commit details
    Browse the repository at this point in the history
  2. raftstore,server: add enable_v2_compatible_learner config (tikv#14616)

    ref tikv#14579
    
    raftstore,server: add enable_v2_compatible_learner config
    
    The new config is added to clean up hard code tiflash check
    
    Signed-off-by: Neil Shen <[email protected]>
    overvenus authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    2984dd1 View commit details
    Browse the repository at this point in the history
  3. copr: fix extral physical table id when idx key < `MAX_OLD_ENCODED_VA…

    …LUE_LEN` (tikv#14618)
    
    close tikv#14619
    
    fix a bug with `process_old_collation_kv` function. 
    
    related with tikv#11931, forget process `physical_table_id_column_cnt` in process_old_collation_kv function
    
    Signed-off-by: Jason Mo <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    Defined2014 and ti-chi-bot authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    b11c299 View commit details
    Browse the repository at this point in the history
  4. raftstore: enable raftstore-v1 apply tablet snapshot sent from raftst…

    …ore-v2 (tikv#14584)
    
    ref tikv#14579
    
    enable raftstore-v1 apply tablet snapshot sent from raftstore-v2
    
    Signed-off-by: Spade A <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    SpadeA-Tang and ti-chi-bot authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    666edee View commit details
    Browse the repository at this point in the history
  5. raft: peers shouldn't hibernate incorrectly when one node fails (tikv…

    …#14574)
    
    ref tikv#14547
    
    raft: peers shouldn't hibernate incorrectly when one node fails
    
    Signed-off-by: qupeng <[email protected]>
    
    Co-authored-by: Ti Chi Robot <[email protected]>
    hicqu and ti-chi-bot authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    20b75dc View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. raftstore-v2: prevent resolving store 0 (tikv#14645)

    * raftstore-v2: prevent resolving store 0
    
    Do not cache invaild peer otherwise it may send raft message to
    store 0 during region split.
    
    Signed-off-by: Neil Shen <[email protected]>
    
    * address comments
    
    Signed-off-by: Neil Shen <[email protected]>
    
    ---------
    
    Signed-off-by: Neil Shen <[email protected]>
    overvenus authored Apr 24, 2023
    Configuration menu
    Copy the full SHA
    0de1123 View commit details
    Browse the repository at this point in the history
  2. raftstore: delete tablet snap if exists (tikv#14647)

    * done
    
    Signed-off-by: Spade A <[email protected]>
    
    * add panic
    
    Signed-off-by: Spade A <[email protected]>
    
    ---------
    
    Signed-off-by: Spade A <[email protected]>
    Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
    SpadeA-Tang and ti-chi-bot[bot] authored Apr 24, 2023
    Configuration menu
    Copy the full SHA
    1674d3c View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. status_api: add get_engine_type api

    Signed-off-by: tonyxuqqi <[email protected]>
    tonyxuqqi committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    84955b6 View commit details
    Browse the repository at this point in the history
  2. [raftstore-v2]: add the missed apply log duration and fix apply wait …

    …time (tikv#14530)
    
    ref tikv#14321
    
    Add the apply log duration metrics.
    
    Signed-off-by: tonyxuqqi <[email protected]>
    tonyxuqqi authored Apr 25, 2023
    Configuration menu
    Copy the full SHA
    c442667 View commit details
    Browse the repository at this point in the history
  3. raftstore: make v1 learner compatible with gc peer (tikv#14601)

    close tikv#14595
    
    Make tiflash engine compatible with gc peer
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
    overvenus and ti-chi-bot[bot] authored Apr 25, 2023
    Configuration menu
    Copy the full SHA
    c7cf0c6 View commit details
    Browse the repository at this point in the history
  4. cdc: support filter lossy DDL changes (tikv#14629)

    close tikv#14630
    
    cdc: support filter lossy DDL changes. We don't need to send those changes downstream.
    
    Signed-off-by: hi-rustin <[email protected]>
    
    Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
    Rustin170506 and ti-chi-bot[bot] authored Apr 25, 2023
    Configuration menu
    Copy the full SHA
    5dc8360 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. cloud: update dependencies on Azure. (tikv#14610)

    close tikv#14609
    
    Update the Azure SDK to latest version to support later developments.
    
    Signed-off-by: LykxSassinator <[email protected]>
    LykxSassinator authored Apr 26, 2023
    Configuration menu
    Copy the full SHA
    eb2ad98 View commit details
    Browse the repository at this point in the history
  2. update pprof (tikv#14635)

    close tikv#14224
    
    Fix fd leak caused by continuous profiling
    
    Signed-off-by: tabokie <[email protected]>
    tabokie authored Apr 26, 2023
    Configuration menu
    Copy the full SHA
    b96fe4d View commit details
    Browse the repository at this point in the history
  3. txn: Check whether the primary matches when handling check_txn_status…

    … requests (tikv#14637)
    
    close tikv#14636, ref pingcap/tidb#42937
    
    Makes TiKV support checking whether the lock is primary when handling check_txn_status.
    
    Signed-off-by: MyonKeminta <[email protected]>
    
    Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
    MyonKeminta and ti-chi-bot[bot] authored Apr 26, 2023
    Configuration menu
    Copy the full SHA
    8656623 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3e0b035 View commit details
    Browse the repository at this point in the history
  5. address lint

    Signed-off-by: tonyxuqqi <[email protected]>
    tonyxuqqi committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    909ffe5 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'get_engine_type_api' of https://github.com/tonyxuqqi/tikv

    … into get_engine_type_api
    tonyxuqqi committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    7a52b44 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. raftstore-v2: fix stale read by correct updating peers (tikv#14665)

    close tikv#14664
    
    Fix stale read by correct updating peers
    
    Signed-off-by: Neil Shen <[email protected]>
    
    Co-authored-by: tonyxuqqi <[email protected]>
    overvenus and tonyxuqqi authored Apr 27, 2023
    Configuration menu
    Copy the full SHA
    0f3013e View commit details
    Browse the repository at this point in the history
  2. metrics: add missing check_leader gRPC metrics (tikv#14662)

    close tikv#14658
    
    Record the missing check_leader gRPC metrics.
    
    Signed-off-by: you06 <[email protected]>
    you06 authored Apr 27, 2023
    Configuration menu
    Copy the full SHA
    6b18e8f View commit details
    Browse the repository at this point in the history
  3. [raftstore-v2]: optimize the load based split config based on region …

    …size (tikv#14625)
    
    ref tikv#12842
    
    1) optimize the load based split config based on region size
    2) polish a log message when it cannot find a target peer of the message.
    
    Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
    tonyxuqqi and ti-chi-bot[bot] authored Apr 27, 2023
    Configuration menu
    Copy the full SHA
    38462f2 View commit details
    Browse the repository at this point in the history
  4. raftstore: support decode simple write request in v1 (tikv#14638)

    ref tikv#14575
    
    Support decode simple write request in v1
    
    Signed-off-by: lidezhu <[email protected]>
    
    Co-authored-by: Xinye Tao <[email protected]>
    lidezhu and tabokie authored Apr 27, 2023
    Configuration menu
    Copy the full SHA
    9e73fed View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. Configuration menu
    Copy the full SHA
    53a5f09 View commit details
    Browse the repository at this point in the history
  2. raftstore-v2: support dynamic config write buffer settings (tikv#14565)

    ref tikv#12842
    
    support dynamically adjusting write buffer settings
    
    Signed-off-by: tabokie <[email protected]>
    
    Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
    tabokie and ti-chi-bot[bot] authored Apr 28, 2023
    Configuration menu
    Copy the full SHA
    63d79d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    75fe457 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. raftstore: pub snapshot_meta (tikv#14674)

    ref tikv#14575
    
    Make snapshot_meta accessible
    
    Signed-off-by: CalvinNeo <[email protected]>
    CalvinNeo authored May 5, 2023
    Configuration menu
    Copy the full SHA
    d5c0111 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9c3b48e View commit details
    Browse the repository at this point in the history