You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Aman Tandon <am...@gmail.com> on 2019/08/01 04:19:21 UTC

Re: Mismatch between replication API & index.properties

Yes, that is what my understanding is but if you see the Replication
handler response it is saying it is referring to the index folder not to
the one shown in index.properties. Due to that confusion I am not able to
delete the folder.

Is this some bug or default behavior where irrespective of the
index.properties it will always shows the index folder only.

Solr version - 6.6.2

On Wed, Jul 31, 2019, 21:17 jai dutt <gh...@gmail.com> wrote:

> It's correct behaviour , Solr put replica index file in this format only
> and you can find latest index pointing in index.properties file. Usually
> afer successful full replication Solr remove old timestamp dir.
>
> On Wed, 31 Jul, 2019, 8:02 PM Aman Tandon, <am...@gmail.com>
> wrote:
>
> > Hi,
> >
> > We are having a situation where whole disk space is full and in server
> > where we are seeing the multiple index directories ending with the
> > timestamp. Upon checking the index.properties file for a particular shard
> > replica, it is not referring to the folder name *index *but when I am
> using
> > the replication API I am seeing it is pointing to *index *folder. Am I
> > missing something? Kindly advise.
> >
> > *directory*
> >
> >
> >
> > *drwxrwxr-x. 2 fusion fusion 69632 Jul 30 23:24 indexdrwxrwxr-x. 2 fusion
> > fusion 28672 Jul 31 03:02 index.20190731005047763drwxrwxr-x. 2 fusion
> > fusion  4096 Jul 31 10:20 index.20190731095757917*
> > -rw-rw-r--. 1 fusion fusion        78  Jul 31 03:02 index.properties
> > -rw-rw-r--. 1 fusion fusion       296 Jul 31 09:56 replication.properties
> > drwxrwxr-x. 2 fusion fusion  4096 Jan 16  2019 snapshot_metadata
> > drwxrwxr-x. 2 fusion fusion  4096 Jul 30 23:24 tlog
> >
> > *index.properties*
> >
> > #index.properties
> > #Wed Jul 31 03:02:12 EDT 2019
> > index=index.20190731005047763
> >
> > *REPLICATION API STATUS*
> >
> > <lst name="details">
> > <str name="indexSize">280.56 GB</str>
> > <str name="indexPath">
> > */opt/solr/xxxxx_shard4_replica3/data/index/*
> > </str>
> > <arr name="commits">...</arr>
> > <str name="isMaster">true</str>
> > <str name="isSlave">false</str>
> > <long name="indexVersion">1564543395563</long>
> > <long name="generation">98884</long>
> > <lst name="master">...</lst>
> > <lst name="slave">...</lst>
> >
> > Regards,
> > Aman
> >
>

Re: Mismatch between replication API & index.properties

Posted by Atita Arora <at...@gmail.com>.
I am not sure but just guessing is this node acting as a repeater?

This seems legitimate as Jai mentioned above, the discrepancy could be
because of unsuccessful replication due to disk space constraints.


On Thu, Aug 1, 2019 at 6:19 AM Aman Tandon <am...@gmail.com> wrote:

> Yes, that is what my understanding is but if you see the Replication
> handler response it is saying it is referring to the index folder not to
> the one shown in index.properties. Due to that confusion I am not able to
> delete the folder.
>
> Is this some bug or default behavior where irrespective of the
> index.properties it will always shows the index folder only.
>
> Solr version - 6.6.2
>
> On Wed, Jul 31, 2019, 21:17 jai dutt <gh...@gmail.com> wrote:
>
> > It's correct behaviour , Solr put replica index file in this format only
> > and you can find latest index pointing in index.properties file. Usually
> > afer successful full replication Solr remove old timestamp dir.
> >
> > On Wed, 31 Jul, 2019, 8:02 PM Aman Tandon, <am...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > We are having a situation where whole disk space is full and in server
> > > where we are seeing the multiple index directories ending with the
> > > timestamp. Upon checking the index.properties file for a particular
> shard
> > > replica, it is not referring to the folder name *index *but when I am
> > using
> > > the replication API I am seeing it is pointing to *index *folder. Am I
> > > missing something? Kindly advise.
> > >
> > > *directory*
> > >
> > >
> > >
> > > *drwxrwxr-x. 2 fusion fusion 69632 Jul 30 23:24 indexdrwxrwxr-x. 2
> fusion
> > > fusion 28672 Jul 31 03:02 index.20190731005047763drwxrwxr-x. 2 fusion
> > > fusion  4096 Jul 31 10:20 index.20190731095757917*
> > > -rw-rw-r--. 1 fusion fusion        78  Jul 31 03:02 index.properties
> > > -rw-rw-r--. 1 fusion fusion       296 Jul 31 09:56
> replication.properties
> > > drwxrwxr-x. 2 fusion fusion  4096 Jan 16  2019 snapshot_metadata
> > > drwxrwxr-x. 2 fusion fusion  4096 Jul 30 23:24 tlog
> > >
> > > *index.properties*
> > >
> > > #index.properties
> > > #Wed Jul 31 03:02:12 EDT 2019
> > > index=index.20190731005047763
> > >
> > > *REPLICATION API STATUS*
> > >
> > > <lst name="details">
> > > <str name="indexSize">280.56 GB</str>
> > > <str name="indexPath">
> > > */opt/solr/xxxxx_shard4_replica3/data/index/*
> > > </str>
> > > <arr name="commits">...</arr>
> > > <str name="isMaster">true</str>
> > > <str name="isSlave">false</str>
> > > <long name="indexVersion">1564543395563</long>
> > > <long name="generation">98884</long>
> > > <lst name="master">...</lst>
> > > <lst name="slave">...</lst>
> > >
> > > Regards,
> > > Aman
> > >
> >
>