-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(job-executor): Adding helpful debug logs to improve job acquisition and job execution logging. Issue#2666. #4217
Conversation
…on and job execution logging. Issue#2666.
…n logging. Issue#2666
Thank you for raising this. Best, |
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.
@prakashpalanisamy, nice work!
I left a few comments for the code formatting (check all of the code for missing spaces) and covering the non-Spring use cases.
In addition to the changes, could you have have a look at adding a few test cases for the logging. The logging rule can be helpful for them. You can see examples here:
- https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/test/java/org/camunda/bpm/engine/test/jobexecutor/JobExecutorAcquireJobsForPriorityRangeTest.java#L164-L176
- https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/test/java/org/camunda/bpm/engine/test/jobexecutor/JobExceptionLoggingTest.java#L77-L96
} | ||
} | ||
|
||
public void logJobExecutionInfo(ProcessEngineImpl engine, int executionQueueSize, int executionQueueCapacity, int maxExecutionThreads, int activeExecutionThreads) { |
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 code is called only for Spring use cases. Have you considered how to log the same data for non-Spring scenario? As I don't think the ticket is created only for Spring use cases.
Hint:
Lines 43 to 45 in 5df0514
protected int queueSize = 3; | |
protected int corePoolSize = 3; | |
protected int maxPoolSize = 10; |
engine/src/main/java/org/camunda/bpm/engine/impl/jobexecutor/JobExecutor.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/camunda/bpm/engine/impl/jobexecutor/SequentialJobAcquisitionRunnable.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/camunda/bpm/engine/impl/jobexecutor/SequentialJobAcquisitionRunnable.java
Outdated
Show resolved
Hide resolved
...re/src/main/java/org/camunda/bpm/engine/spring/components/jobexecutor/SpringJobExecutor.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/jobexecutor/JobExecutorLogger.java
Outdated
Show resolved
Hide resolved
Committing the Formatting suggestions received during review. Co-authored-by: yanavasileva <yanavasileva@users.noreply.github.com>
@yanavasileva , Thank you for taking your time to review. Ill look at the comments and update you. Thanks!! |
Closing due to inactivity. The PR can be reopened again when you get back to the topic. |
This code change adds additional logging to Camunda Job Executor and scoped to the Job Acquisition and Job Execution.
#2666