-
Notifications
You must be signed in to change notification settings - Fork 762
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
Tracking issue: tenant migration #14719
Comments
This was referenced Mar 19, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 21, 2024
`BackgroundJobIdent` is a kvapi::Key but not a value. It does not need to be `serde`. Thus in this commit we create another struct `BackgroundTaskCreator` with the same structure as `BackgroundJobIdent` for usage in values. And remove `serde` declaration from `BackgroundJobIdent`. - Part of databendlabs#14719
5 tasks
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 22, 2024
`BackgroundJobIdent` is a kvapi::Key but not a value. It does not need to be `serde`. Thus in this commit we create another struct `BackgroundTaskCreator` with the same structure as `BackgroundJobIdent` for usage in values. And remove `serde` declaration from `BackgroundJobIdent`. - Part of databendlabs#14719
drmingdrmer
added a commit
that referenced
this issue
Mar 22, 2024
refactor: add `BackgroundTaskCreator` `BackgroundJobIdent` is a kvapi::Key but not a value. It does not need to be `serde`. Thus in this commit we create another struct `BackgroundTaskCreator` with the same structure as `BackgroundJobIdent` for usage in values. And remove `serde` declaration from `BackgroundJobIdent`. - Part of #14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 23, 2024
Define BackgroundJobIdent with `TIdent`, make `BackgroundJobIdent.tenant` a `Tenant` instead of a plain `String`. - Part of databendlabs#14719
5 tasks
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 23, 2024
Define BackgroundJobIdent with `TIdent`, make `BackgroundJobIdent.tenant` a `Tenant` instead of a plain `String`. - Part of databendlabs#14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 23, 2024
Define BackgroundJobIdent with `TIdent`, make `BackgroundJobIdent.tenant` a `Tenant` instead of a plain `String`. - Part of databendlabs#14719
drmingdrmer
added a commit
that referenced
this issue
Mar 23, 2024
Define BackgroundJobIdent with `TIdent`, make `BackgroundJobIdent.tenant` a `Tenant` instead of a plain `String`. - Part of #14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 23, 2024
Remove `impl FromToProto for BackgroundTaskIdent`, it does not need to be encoded to protobuf. - Part of databendlabs#14719
5 tasks
BohuTANG
pushed a commit
that referenced
this issue
Mar 23, 2024
Remove `impl FromToProto for BackgroundTaskIdent`, it does not need to be encoded to protobuf. - Part of #14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 26, 2024
There is no need to have the entire `Settings` in `QueryFragmentsPlanPacket`. Only the `Settings.changes` is used. And `Settings.tenant` can not be `serde` in future, ths `QueryFragmentsPlanPacket` can not include a `Tenant` in it. - Part of databendlabs#14719
5 tasks
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 26, 2024
There is no need to have the entire `Settings` in `QueryFragmentsPlanPacket`. Only the `Settings.changes` is used. And `Settings.tenant` can not be `serde` in future, ths `QueryFragmentsPlanPacket` can not include a `Tenant` in it. - Part of databendlabs#14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 26, 2024
There is no need to have the entire `Settings` in `QueryFragmentsPlanPacket`. Only the `Settings.changes` is used. And `Settings.tenant` can not be `serde` in future, ths `QueryFragmentsPlanPacket` can not include a `Tenant` in it. - Part of databendlabs#14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
5 tasks
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 27, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 28, 2024
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 28, 2024
drmingdrmer
added a commit
that referenced
this issue
Mar 28, 2024
* refactor: replace `NonEmptyString` with `Tenant` - Part of #14719
5 tasks
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 28, 2024
Replacing all String with Tenant introduces a lot changes. These changes will be split into several PRs. This is one of them. - Part of databendlabs#14719
drmingdrmer
added a commit
that referenced
this issue
Mar 29, 2024
* refactor: replace String with Tenant Replacing all String with Tenant introduces a lot changes. These changes will be split into several PRs. This is one of them. - Part of #14719 * chore: fix lint * chore: fix lint * chore: fix lint * chore: fix unittest * chore: fix lint
5 tasks
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 29, 2024
…Ident and DataMaskNameIdent - Part of databendlabs#14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 29, 2024
…Ident and DataMaskNameIdent - Part of databendlabs#14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 29, 2024
…Ident and DataMaskNameIdent - Part of databendlabs#14719
drmingdrmer
added a commit
to drmingdrmer/databend
that referenced
this issue
Mar 29, 2024
…Ident and DataMaskNameIdent - Part of databendlabs#14719
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature request:
Not do
share
and all related meta data is not exported or imported. Becauseshare
can not be maintained cross two meta-service cluster.Current tenant meta-data must be prefixed so that no two records have same key.
Step-1 standardize keys with
kvapi::Key
All to meta-service request should use
kvapi::Key
so that the relationship between records are well defined.parent()
method to kvapi::Key to describe the hierarchical structure of meta-service data #14716kvapi::Key
; #14738kvapi::Key
#14792kvapi::Key
#14849kvapi::Key
#14869kvapi::Key
#14911kvapi::Key
#14916kvapi::Key
#14932kvapi::Key
#14934kvapi::Key
#15001kvapi::Key
#15004Step-2: remove unnecessary
serde::Serialize
declarationBecause we need to keep compatibility when updating the kvapi::Key implementations(e.g., add
Tenant
info to a key), we need to ensure no other encoding methods are used.BackgroundTaskCreator
#15063QueryFragmentsPlanPacket
should include just setting changes #15095NonEmptyString
withTenant
#15103Tenant
forListBackgroundTasksReq
#15176Step-3: force all tenant used in kvapi::Key non-empty: replace field
tenant: String
withtenant: Tenant
Tenant
forBackgroundJobIdent.tenant
#15074Step-4 Filter out keys belonging to a tenant, directly or indirectly
The text was updated successfully, but these errors were encountered: