Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

refactor: refactor storage of cluster meta data #93

Merged
merged 3 commits into from
Nov 3, 2022

Conversation

chunshao90
Copy link
Contributor

@chunshao90 chunshao90 commented Nov 2, 2022

Which issue does this PR close?

Refer to #94

Rationale for this change

Refactor storage of cluster meta data, define the memory data structure corresponding to pb.

What changes are included in this PR?

  • Remove Storage and rename MetaStorage to Storage
  • Refactor MetaStorage interface by using Request and Result to avoid multi parameters
  • Define the memory data structure corresponding to pb
  • Modify some log info to be more readable

Are there any user-facing changes?

No.

How does this change test

Old tests are covered.

@chunshao90 chunshao90 force-pushed the refactor-meta-storage branch 2 times, most recently from 7dc0adb to 0651cb0 Compare November 2, 2022 07:09
@chunshao90 chunshao90 changed the title refactor: refactor MetaStorageImpl refactor: refactor storage of cluster meta data Nov 2, 2022
@chunshao90 chunshao90 marked this pull request as ready for review November 2, 2022 08:19
server/cluster/manager.go Outdated Show resolved Hide resolved
server/cluster/manager.go Show resolved Hide resolved
server/coordinator/procedure/scatter.go Show resolved Hide resolved
server/cluster/cluster.go Show resolved Hide resolved
server/cluster/cluster.go Outdated Show resolved Hide resolved
server/storage/types.go Show resolved Hide resolved
server/storage/storage_impl.go Outdated Show resolved Hide resolved
server/storage/storage_impl.go Outdated Show resolved Hide resolved
server/storage/storage_impl.go Outdated Show resolved Hide resolved
server/storage/storage_impl.go Outdated Show resolved Hide resolved
Copy link
Contributor

@ZuLiangWang ZuLiangWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZuLiangWang ZuLiangWang merged commit 4940d46 into apache:main Nov 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants