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

[COMMON] Json converter should support DataSize and Duration #1431

Merged
merged 5 commits into from
Jan 15, 2023

Conversation

chia7712
Copy link
Contributor

@chia7712 chia7712 commented Jan 15, 2023

DurationDataSize很常用在request/response,因此我們直接支援該型別的轉換來減少程式碼

fix #1121

@@ -53,7 +53,7 @@ curl -X POST http://localhost:8001/balancer \
{ "cost": "org.astraea.common.cost.ReplicaLeaderCost", "weight": 1 }
],
"maxMigratedSize": "300MB",
"maxMigratedLeader": "3"
"maxMigratedLeader": 3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@qoo332001 @garyparrot 這裡我有做一個 API 的變動,麻煩你們測試的時候注意一下

@chia7712 chia7712 merged commit 02f73ab into opensource4you:main Jan 15, 2023
@chia7712
Copy link
Contributor Author

failed test is traced by #1432

@chia7712 chia7712 deleted the parse_more_type branch March 27, 2023 13:19
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.

合併 BalancerHandler#parseCostFunctionWeight and StrictCostDispatcher#parseCostFunctionWeight
1 participant