-
Notifications
You must be signed in to change notification settings - Fork 202
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
JobActor::WorkerManager's logs contain the WorkerID that they correspond to #411
base: master
Are you sure you want to change the base?
Conversation
@@ -1286,6 +1288,8 @@ class WorkerManager implements IWorkerManager { | |||
.build(); | |||
private volatile boolean stageAssignmentPotentiallyChanged; | |||
|
|||
private WorkerManagerLogger workerLogger; |
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.
Introducing extra lifecycle for these loggers doesn't seem to provide enough benefits. Adding the extra metadata to the logger message is sufficient enough.
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.
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.
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.
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.
so you mean, I can directly add worker Id to Logger.info, where ever worker id is not mentioned.
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:
***@***.***>
|
Context
Explain context and other details for this pull request.
Checklist
./gradlew build
compiles code correctly./gradlew test
passes all tests