-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Feature][Zeta] add rest api to update node tags #7542
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
Conversation
|
Please enable your repo's action |
|
|
||
| @Override | ||
| public CompletableFuture<Void> releaseWorker(String workerID) { | ||
| public CompletableFuture<Void> releaseWorker(String workerId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do not update this as not use in this pr
|
|
||
| @Override | ||
| public CompletableFuture<Void> releaseWorker(String workerID) { | ||
| public CompletableFuture<Void> releaseWorker(String workerId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
|
|
||
| List<SlotProfile> getAssignedSlots(Map<String, String> tags); | ||
|
|
||
| void registerWorker(Address address,WorkerProfile workerProfile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why need add this new method?
| NodeEngineImpl nodeEngine = seaTunnelServer.getNodeEngine(); | ||
| MemberImpl localMember = nodeEngine.getLocalMember(); | ||
| if (!params.isEmpty() && params.containsKey("tags")) { | ||
| localMember.updateAttribute((Map<String, String>) params.get("tags")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this tags value is not a Map<String, String>, what's the response?
and if not tags is null or empty, is this will clear the node tags?
| } | ||
|
|
||
| @Test | ||
| public void testUpdateTags() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test case for update tag failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
LGTM if ci pass |
Hisoka-X
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @Cheun99
|
Hi @Cheun99 , how about add a link into to tell user we can update node tags when use resource isolation feature? |
done |
Purpose of this pull request
new feature #7510
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note.