[midPoint-git] [Evolveum/midpoint] 0e1a1a: Fix nasty multithreaded iterative scripting bug

Pavol Mederly mederly at evolveum.com
Thu May 3 11:49:08 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 0e1a1a6e863fa50074d8af2dc1feb504049cb70f
      https://github.com/Evolveum/midpoint/commit/0e1a1a6e863fa50074d8af2dc1feb504049cb70f
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-05-03 (Thu, 03 May 2018)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/IterativeScriptExecutionTaskHandler.java

  Log Message:
  -----------
  Fix nasty multithreaded iterative scripting bug

When running iterative scripting (bulk actions) sometimes the object
that is to be processed is overwritten by another thread. This results
in some objects being processed multiple times while others are skipped.


  Commit: d8a9de2c78a4b93bd9d8bc6ace87e0c76fb8d015
      https://github.com/Evolveum/midpoint/commit/d8a9de2c78a4b93bd9d8bc6ace87e0c76fb8d015
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-05-03 (Thu, 03 May 2018)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/PageTasks.java
    M gui/admin-gui/src/main/resources/localization/Midpoint.properties
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/TaskService.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
    M repo/repo-sql-impl-test/src/test/java/com/evolveum/midpoint/repo/sql/util/SimpleTaskAdapter.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/Task.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/TaskManager.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/TaskQuartzImpl.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/handlers/WaitForSubtasksByPollingTaskHandler.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/handlers/WorkersCreationTaskHandler.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/handlers/WorkersRestartTaskHandler.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/work/WorkStateManager.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/work/workers/WorkersManager.java
    A samples/tasks/bulk-actions/script-users-multinode.xml

  Log Message:
  -----------
  Fix suspend/resume of multithreaded task trees

If a task tree contains multithreaded workers, suspend/resume
(including suspend+delete) of the whole tree failed; it is now fixed.

Also added new action "Delete workers and work state" that brings
multinode task into more-or-less initial state.


Compare: https://github.com/Evolveum/midpoint/compare/bc5d0ac27a2c...d8a9de2c78a4
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the midPoint-svn mailing list