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

astraea-974 Implement ReassignmentHandler post request #1176

Merged
merged 5 commits into from
Dec 8, 2022

Conversation

g1geordie
Copy link
Contributor

@g1geordie g1geordie commented Nov 27, 2022

[JSON][WEB] Implement ReassignmentHandler post request by Jackson
ref #974

[JSON][WEB] Implement ReassignmentHandler post request by Jackson
…gnment

# Conflicts:
#	common/src/main/java/org/astraea/common/Utils.java
request.value(TO_KEY)))
plan.topic.get(), plan.partition.get(), plan.broker.get()),
JsonConverter.defaultConverter()
.convert(plan.to.get(), TypeRef.of(String.class))))
Copy link
Contributor

Choose a reason for hiding this comment

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

這邊也是跟TopicHandler的狀況類似,當時 APIs 設計時放了類似的格式,這個一來不容易閱讀、二來也造成程式碼的複雜。建議這邊一樣處理掉這個議題,有三種搬移:

  1. 從 A 節點到 B節點
  2. 從節點的A目錄到節點的B目錄
  3. 將某節點身上的 topic partition 通通移開

可以將這幾種種操作的做料分開,例如分別叫做toNodes, toFolders, excludeNodes

@chia7712
Copy link
Contributor

chia7712 commented Dec 8, 2022

麻煩rebase一下

@chia7712 chia7712 merged commit 7208b0a into opensource4you:main Dec 8, 2022
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