LogCleanupCommand delete a part of logs unexpectedly

Solution In Progress - Updated -

Issue

When running LogCleanupCommand with OlderThan parameter, it deletes some of logs unexpectedly.

e.g.

  • When sub process have been completed but parent process is not yet, relevant logs of sub process will be deleted
  • if NodeInstanceLog.log_date/VariableInstanceLog.log_date is older than OlderThan date

    and

    if ProcessInstanceLog.end_date is later than OlderThan date

  • RequestInfo, ErrorInfo, ExecutionErrorInfo are deleted regardless of existence of corresponding ProcessInstanceLog.

Is this a bug?
We expect that :

When olderThan is specified, at first identify the target completed/aborted ProcessInstanceId whose ProcessInstanceLog.end_date is older than the specified date, and then delete corresponding ProcessInstanceLog, NodeInstanceLog, VariableInstanceLog, RequestInfo, ErrorInfo and ExecutionErrorInfo.

How can we achieve what we want?

Environment

  • Red Hat Process Automation manager
    • 7.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content