Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.
Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.
Briefly, this error occurs when OpenSearch tries to delete old, unused indices but encounters an issue. This could be due to insufficient permissions, a locked index, or a network problem. To resolve this, you can manually delete the stale indices, ensure OpenSearch has the necessary permissions, unlock any locked indices, or troubleshoot any network issues. Additionally, check the OpenSearch logs for more detailed information about the error.
For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.
This guide will help you check for common problems that cause the log ” [{}] Exception during cleanup of stale indices ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: repositories, indices, blobstore.
Log Context
Log “[{}] Exception during cleanup of stale indices” classname is BlobStoreRepository.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :
} catch (Exception e) { // TODO: We shouldn't be blanket catching and suppressing all exceptions here and instead handle them safely upstream. // Currently this catch exists as a stop gap solution to tackle unexpected runtime exceptions from implementations // bubbling up and breaking the snapshot functionality. assert false : e; logger.warn(new ParameterizedMessage("[{}] Exception during cleanup of stale indices"; metadata.name()); e); } } private void executeOneStaleIndexDelete( BlockingQueue> staleIndicesToDelete;