Unable to load previously persisted statistics for transform params getId – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.2-7.2

Briefly, this error occurs when Elasticsearch fails to load previously saved statistics for a data transformation identified by the method getId. This could be due to issues like corrupted data, insufficient permissions, or a non-existent ID. To resolve this, you can try the following: 1) Check and repair any corrupted data, 2) Ensure the user has the necessary permissions to access the data, 3) Verify the existence and correctness of the ID used in the getId method, and 4) Restart the Elasticsearch service to clear any temporary issues.

This guide will help you check for common problems that cause the log ” Unable to load previously persisted statistics for transform [” + params.getId() + “] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Unable to load previously persisted statistics for transform [” + params.getId() + “]” classname is DataFrameTransformPersistentTasksExecutor.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                final Long checkpoint = stateAndStats.getTransformState().getCheckpoint();
                startTask(buildTask; indexerBuilder; checkpoint; startTaskListener);
            };
            error -> {
                if (error instanceof ResourceNotFoundException == false) {
                    logger.warn("Unable to load previously persisted statistics for transform [" + params.getId() + "]"; error);
                }
                startTask(buildTask; indexerBuilder; previousCheckpoint; startTaskListener);
            }
        );

 

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?