JobActor::WorkerManager's logs contain the WorkerID that they correspond to#411
Open
GautamGottipati wants to merge 2 commits intoNetflix:masterfrom
Open
JobActor::WorkerManager's logs contain the WorkerID that they correspond to#411GautamGottipati wants to merge 2 commits intoNetflix:masterfrom
GautamGottipati wants to merge 2 commits intoNetflix:masterfrom
Conversation
Andyz26
requested changes
Apr 12, 2023
| .build(); | ||
| private volatile boolean stageAssignmentPotentiallyChanged; | ||
|
|
||
| private WorkerManagerLogger workerLogger; |
Collaborator
There was a problem hiding this comment.
Introducing extra lifecycle for these loggers doesn't seem to provide enough benefits. Adding the extra metadata to the logger message is sufficient enough.
Author
Collaborator
There was a problem hiding this comment.
The issue is about jobId at the job actor level and that is a different structure comparing to this workerManager. Here WorkerManager is not 1 to 1 mapping with a specific worker logically. There is no need to maintain a worker-level logger as long as the information needed is logged.
Author
There was a problem hiding this comment.
so you mean, I can directly add worker Id to Logger.info, where ever worker id is not mentioned.
Collaborator
|
In this case yes.
…On Wed, Apr 12, 2023 at 10:52 AM Gottipati Gautam ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In
mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/jobcluster/job/JobActor.java
<#411 (comment)>:
> @@ -1286,6 +1288,8 @@ class WorkerManager implements IWorkerManager {
.build();
private volatile boolean stageAssignmentPotentiallyChanged;
+ private WorkerManagerLogger workerLogger;
so you mean, I can directly add worker Id to Logger.info, where ever
worker id is not mentioned.
—
Reply to this email directly, view it on GitHub
<#411 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AU5L2E3SSC7QB54ESUL2ZW3XA3TUHANCNFSM6AAAAAAWVFZ534>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Explain context and other details for this pull request.
Checklist
./gradlew buildcompiles code correctly./gradlew testpasses all tests