Github user aledsage commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/480#discussion_r101851346
--- Diff:
core/src/main/java/org/apache/brooklyn/util/core/task/BasicExecutionManager.java
---
@@ -753,7 +753,10 @@ protected void beforeStartAtomicTask(Map<?,?> flags,
Task<?> task) {
/** invoked in a task's thread when a task is starting to run (may be
some time after submitted),
* but before doing any of the task's work, so that we can update
bookkeeping and notify callbacks */
protected void internalBeforeStart(Map<?,?> flags, Task<?> task) {
- activeTaskCount.incrementAndGet();
+ int count = activeTaskCount.incrementAndGet();
+ if (count % 1000==0) {
--- End diff --
If we hover around the 999 to 1001 mark for the number of active tasks,
then we'll get this log message lots of times. But I think that's acceptable,
in exchange for simpler code. So fine as it is.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---