Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

block user accessing importing tables by RENAME TABLE #544

@lance6716

Description

@lance6716

Feature Request

Is your feature request related to a problem? Please describe:

When lightning is doing its job, user still can access importing tables, so he may see non-consistent data or interfere checksum processing.

Describe the feature you'd like:

using RENAME TABLE to hide importing tables, both in cluster initiation and online importing scenarios. In order to handle lightning not gracefullly exit, we might save recoving renaming SQLs to a table so user could copy-paste it 😂

Describe alternatives you've considered:

  • downstream already has a technique to detect killed lightning like "ImportMode", so maybe we could let downstream recover renaming instead of user.
  • use LOCK TABLES rather than RENAME, but require TiDB enable-lock-tables in config

Teachability, Documentation, Adoption, Optimization:

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestThis issue is a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions