[midPoint-git] [Evolveum/midpoint] d327aa: Fix CacheCounterManager memleak (MID-6343)

mederly noreply at github.com
Tue Jun 23 15:10:34 CEST 2020


  Branch: refs/heads/tmp/mid-6340
  Home:   https://github.com/Evolveum/midpoint
  Commit: d327aade9d84880a5f1f904591fd1296998ffd0e
      https://github.com/Evolveum/midpoint/commit/d327aade9d84880a5f1f904591fd1296998ffd0e
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleSuspendTaskExecutor.java
    M repo/repo-api/src/main/java/com/evolveum/midpoint/repo/api/CounterSpecification.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerQuartzImpl.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/execution/JobExecutor.java

  Log Message:
  -----------
  Fix CacheCounterManager memleak (MID-6343)

This is a TEMPORARY fix for memory leak in CacheCounterManager.

1) Entries in counter manager are now created only if suspendTask
action is present.

2) Entries are cleaned up for all tasks (not only for lightweight
partitioning ones).

3) Storage of whole tasks is avoided. Only name and OID is recorded.

However, the whole fix has to be reviewed thoroughly and carried
over to master. (The state in master is already partially OK;
but not completely.)

Note that thresholds tests are failing. But they were failing
even before this commit.




More information about the midPoint-svn mailing list