How To Solve Issues Related to Log – Adding index ; preferred over

How To Solve Issues Related to Log – Adding index ; preferred over

Updated: Jan-20

Elasticsearch Version: 1.7-8.0

Background

Before you begin reading this guide try our beta Elasticsearch Health Check-Up it analyses JSON’s to provide personalized recommendations that can improve your clusters performance.


To troubleshoot log “Adding index ; preferred over” it’s important to understand a few problems related to Elasticsearch concepts index, tribe. See bellow important tips and explanations on these concepts

Log Context

Log”[{}] adding index {}; preferred over [{}]” classname is TribeService.java
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                             // on conflict; prefer a tribe...
                            String preferredTribeName = onConflict.substring(ON_CONFLICT_PREFER.length());
                            if (tribeName.equals(preferredTribeName)) {
                                // the new one is hte preferred one; replace...
                                clusterStateChanged = true;
                                logger.info("[{}] adding index {}; preferred over [{}]"; tribeName; tribeIndex.getIndex();
                                        existingFromTribe);
                                removeIndex(blocks; metaData; routingTable; tribeIndex);
                                addNewIndex(tribeState; blocks; metaData; routingTable; tribeIndex);
                            } // else: either the existing one is the preferred one; or we haven't seen one; carry on
                        }




Related issues to this log

We have gathered selected Q&A from the community and issues from Github, that can help fix related issues please review the following for further information :

1 Preferred method of indexing bulk data into ElasticSearch? 2.69 K 10

How to add automatically all the indices from elasticsearch to kibana?   0.35 K -

About Opster

Opster detects root causes of Elasticsearch problems, provides automated recommendations and can perform various actions to prevent issues and optimize performance

Find Configuration Errors

Analyze Now