Removing intervening annotations after reverting model deleting annotations after – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.9-8.9

Briefly, this error occurs when Elasticsearch is trying to revert changes made to a machine learning model and remove annotations associated with those changes. This could be due to an issue with the model or a conflict in the data. To resolve this issue, you can try to manually delete the annotations if they are no longer needed. Alternatively, you can try to retrain the model with the correct data or restore the model from a backup if available. Lastly, ensure that your data is consistent and does not have conflicts that could cause issues with the model.

This guide will help you check for common problems that cause the log ” [{}] Removing intervening annotations after reverting model: deleting annotations after [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “[{}] Removing intervening annotations after reverting model: deleting annotations after [{}]” classname is TransportRevertModelSnapshotAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        String jobId
    ) {

        return ActionListener.wrap(response -> {
            Date deleteAfter = modelSnapshot.getLatestResultTimeStamp() == null ? new Date(0) : modelSnapshot.getLatestResultTimeStamp();
            logger.info("[{}] Removing intervening annotations after reverting model: deleting annotations after [{}]"; jobId; deleteAfter);

            JobDataDeleter dataDeleter = new JobDataDeleter(client; jobId);
            Set eventsToDelete = Set.of(
                // Because the results based on the delayed data are being deleted; the fact that the data was originally delayed is
                // not relevant

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?