StateDeletionFailed event

Highlight

Event Description How to recover Flow Related

StateDeletionFailed

• Emitted when deleting a bulk state from the state store/database fails (e.g., post-completion cleanup cannot remove the record).

• Check state store permissions and connectivity.

no

Operating Questions

Question Answer Comments

Could happen in production?

Yes

Is it fatal?

No

Logs

Log level Log message Also logs underlying exception?

ERROR

Error encountered deleting from state store

Yes

Resolution Notes

# Action Comments

1

Check system logs and the system event for underlying exception.

Look for the ERROR log mentioned in the 'Logs' section.

The System Event also logs the error in the errorMessage field.

The StateStore is backed by a database, and the exception could have arisen from a number of issues. For example, if the StateStore is underpinned by MongoDB, there could be a connection exception or a authentication exception (not exhaustive list)

2

Remediate the issue

Varies depending on the StateStore DB issue

3

Manually delete the state from the BulkStateStore

Call the BulkStateStore (spring bean) deleteByBulkId method and pass in the BulkId as an argument.

Note, this may have already been deleted in the original processing of the TerminateBulk command as it fired off a request to do this on a separate thread

4

Trigger a BulkTerminatedNotification notification

Call the Send method on your BulkNotificationPort spring bean, supply a BulkTerminatedNotification as an argument