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

[SERIALIZATION] Serialize Borker info in Clusterinfo #1721

Conversation

chaohengstudent
Copy link
Collaborator

related to #1704

此 pr 將 Broker 資訊序列化以確保能夠得到 Broker 設定

為了實現比較 Broker 的方法,目前的作法是透過

  • 新增
    BrokerImpl, DataFolderImpl 這兩個 record
  • 覆寫
    Configequals()

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@chaohengstudent 有兩個設計上的建議請看一下,謝謝

common/src/main/java/org/astraea/common/admin/Broker.java Outdated Show resolved Hide resolved
common/src/main/java/org/astraea/common/admin/Config.java Outdated Show resolved Hide resolved
# Conflicts:
#	common/src/main/java/org/astraea/common/admin/Config.java
# Conflicts:
#	common/src/main/java/org/astraea/common/ByteUtils.java
#	common/src/main/java/org/astraea/common/admin/Broker.java
#	common/src/main/java/org/astraea/common/admin/ClusterInfoBuilder.java
#	common/src/test/java/org/astraea/common/ByteUtilsTest.java
#	common/src/test/java/org/astraea/common/admin/ClusterInfoBuilderTest.java
@chia7712
Copy link
Contributor

麻煩修正一下衝突,謝謝

# Conflicts:
#	common/src/main/java/org/astraea/common/ByteUtils.java
Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@chaohengstudent
Copy link
Collaborator Author

unrelated test failed track by #1784

@chaohengstudent chaohengstudent merged commit 5114183 into opensource4you:main May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants