Skip to content

[Enhancement] Remove schema hash from BE and FE #8820

@yiguolei

Description

@yiguolei

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Schema hash is not used any more, we should remove it and keep our code more clear. Schema hash is used in may places:

BE

  • used in various paths, such as snapshot path, trash path, tablet's path
  • in the log, We often print tablet id, schema hash
  • The schema hash is recorded in TabletMetaManager, and some are recorded in the keys of rocksdb
  • The schema hash is recorded in RowsetMeta, it is not used.
  • TabletManager such as getTablet, drop Tablet.
  • Various Task executions on BE, such as alter task, clone task
  • Many http actions provided by BE require schema hash as a parameter
  • Meta Tools

FE

  • Available in Catalog, Tabletmeta
  • The schema hash in the report handler is removed to prevent the tablet from being deleted by mistake
  • The query task sent by Fe to BE, as well as in various tasks

Solution

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions