Index Replication Failure
Hi all, We are having solr architecture as below. *We are facing the frequent replication failure between master to repeater server as well as between repeater to slave servers.* On checking logs found every time one of the below exceptions occurred whenever the replication have failed. 1) [image: image.png] 2) [image: image.png] 3) [image: image.png] The replication configuration of master,repeater,slave's is given below: [image: image.png] Commit Configuration master,repeater,slave's is given below : [image: image.png] Replication between master and repeater occurs every 10 mins. Replication between repeater and slave servers occurs every 15 mins between 4-7 am and after that in every 3 hours. Thanks, Parshant Kumar --
Re: Index Replication Failure
Architecture image: If not visible in previous mail [image: image.png] On Sat, Oct 17, 2020 at 2:38 PM Parshant Kumar wrote: > Hi all, > > We are having solr architecture as below. > > > > *We are facing the frequent replication failure between master to repeater > server as well as between repeater to slave servers.* > On checking logs found every time one of the below exceptions occurred > whenever the replication have failed. > > 1) > [image: image.png] > 2) > [image: image.png] > > 3) > [image: image.png] > > The replication configuration of master,repeater,slave's is given below: > > [image: image.png] > > Commit Configuration master,repeater,slave's is given below : > > [image: image.png] > > Replication between master and repeater occurs every 10 mins. > Replication between repeater and slave servers occurs every 15 mins > between 4-7 am and after that in every 3 hours. > > Thanks, > Parshant Kumar > > > > > > --
Re: Index Replication Failure
*Architecture is master->repeater->slave servers in hierarchy.* *One of the Below exceptions are occuring whenever replication fails.* 1)WARN : Error in fetching file: _4rnu_t.liv (downloaded 0 of 11505507 bytes) java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) at org.apache.solr.common.util.FastInputStream.refill(FastInputStream.java:88) at org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:139) at org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) at org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:160) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1443) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) 2) WARN : Error getting file length for [segments_568] java.nio.file.NoSuchFileException: /data/solr/search/application/core-conf/im-search/data/index.20200711012319226/segments_568 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) at java.nio.file.Files.readAttributes(Files.java:1737) at java.nio.file.Files.size(Files.java:2332) at org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:243) at org.apache.solr.handler.admin.LukeRequestHandler.getFileLength(LukeRequestHandler.java:615) at org.apache.solr.handler.admin.LukeRequestHandler.getIndexInfo(LukeRequestHandler.java:588) at org.apache.solr.handler.admin.CoreAdminOperation.getCoreStatus(CoreAdminOperation.java:335) 3) WARN : Error in fetching file: _4nji.nvd (downloaded 507510784 of 555377795 bytes) org.apache.http.MalformedChunkCodingException: CRLF expected at end of chunk at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:255) at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) at org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:128) at org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1458) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetchFile(IndexFetcher.java:1390) at org.apache.solr.handler.IndexFetcher.downloadIndexFiles(IndexFetcher.java:872) at org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:438) at org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:254) *Replication configuration of master,repeater,slave's is given below:* ${enable.master:false} commit startup 00:00:10 *Commit Configuration master,repeater,slave's is given below :* 10false On Sat, Oct 17, 2020 at 5:12 PM Erick Erickson wrote: > None of your images made it through the mail server. You’ll > have to put them somewhere and provide a link. > > > On Oct 17, 2020, at 5:17 AM, Parshant Kumar < > parshant.ku...@indiamart.com.INVALID> wrote: > > > > Architecture image: If not visible in previous mail > > > > > > > > > > On Sat, Oct 17, 2020 at 2:38 PM Parshant Kumar < > parshant.ku...@indiamart.com> wrote: > > Hi all, > > > > We are having solr architecture as below. > > > > > > > > We are facing the frequent replication failure between master to > repeater server as well as between repeater to slave servers. > > On checking logs found every time one of the below exceptions occurred > whenever the replication have failed. > > > > 1) > > > > 2) > > > > > > 3) > > > > > > T
Re: Index Replication Failure
Hi all, please check the details On Sat, Oct 17, 2020 at 5:52 PM Parshant Kumar wrote: > > > *Architecture is master->repeater->slave servers in hierarchy.* > > *One of the Below exceptions are occuring whenever replication fails.* > > 1)WARN : Error in fetching file: _4rnu_t.liv (downloaded 0 of 11505507 > bytes) > java.io.EOFException: Unexpected end of ZLIB input stream > at > java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) > at > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) > at > org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) > at > org.apache.solr.common.util.FastInputStream.refill(FastInputStream.java:88) > at > org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:139) > at > org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) > at > org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:160) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1443) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) > > 2) > WARN : Error getting file length for [segments_568] > java.nio.file.NoSuchFileException: > /data/solr/search/application/core-conf/im-search/data/index.20200711012319226/segments_568 > at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at > sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) > at > sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) > at > sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) > at java.nio.file.Files.readAttributes(Files.java:1737) > at java.nio.file.Files.size(Files.java:2332) > at org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:243) > at > org.apache.solr.handler.admin.LukeRequestHandler.getFileLength(LukeRequestHandler.java:615) > at > org.apache.solr.handler.admin.LukeRequestHandler.getIndexInfo(LukeRequestHandler.java:588) > at > org.apache.solr.handler.admin.CoreAdminOperation.getCoreStatus(CoreAdminOperation.java:335) > > > 3) > WARN : Error in fetching file: _4nji.nvd (downloaded 507510784 of > 555377795 bytes) > org.apache.http.MalformedChunkCodingException: CRLF expected at end of > chunk > at > org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:255) > at > org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227) > at > org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186) > at > org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) > at > java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238) > at > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) > at > org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) > at > org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:128) > at > org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1458) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetchFile(IndexFetcher.java:1390) > at > org.apache.solr.handler.IndexFetcher.downloadIndexFiles(IndexFetcher.java:872) > at > org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:438) > at > org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:254) > > > *Replication configuration of master,repeater,slave's is given below:* > > > > ${enable.master:false} > commit > startup > 00:00:10 > > > > *Commit Configuration master,repeater,slave's is given below :* > > > 10false > > > > > > > On Sat, Oct 17, 2020 at 5:12 PM Erick Erickson > wrote: > >> None of your images made it through the mail server. You’ll >> have to put them somewhere and provide a link. >> >> > On Oct 17, 2020, at 5:17 AM, Parshant Kumar < >> parshant.ku...@indiamart.com.INVALID> wrote: >> > >> > Architecture image:
Frequent Index Replication Failure in solr.
Hi team, We are having solr architecture as *master->repeater-> 3 slave servers.* We are doing incremental indexing on the master server(every 20 min) . Replication of index is done from master to repeater server(every 10 mins) and from repeater to 3 slave servers (every 3 hours). *We are facing the frequent replication failure between master to repeater server as well as between repeater to slave servers.* On checking logs found that every time one of the below exceptions occurred whenever the replication has failed . 1)WARN : Error in fetching file: _4rnu_t.liv (downloaded 0 of 11505507 bytes) java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) at org.apache.solr.common.util.FastInputStream.refill(FastInputStream.java:88) at org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:139) at org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) at org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:160) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1443) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) 2) WARN : Error getting file length for [segments_568] java.nio.file.NoSuchFileException: /data/solr/search/application/core-conf/im-search/data/index.20200711012319226/segments_568 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) at java.nio.file.Files.readAttributes(Files.java:1737) at java.nio.file.Files.size(Files.java:2332) at org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:243) at org.apache.solr.handler.admin.LukeRequestHandler.getFileLength(LukeRequestHandler.java:615) at org.apache.solr.handler.admin.LukeRequestHandler.getIndexInfo(LukeRequestHandler.java:588) at org.apache.solr.handler.admin.CoreAdminOperation.getCoreStatus(CoreAdminOperation.java:335) 3) WARN : Error in fetching file: _4nji.nvd (downloaded 507510784 of 555377795 bytes) org.apache.http.MalformedChunkCodingException: CRLF expected at end of chunk at org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:255) at org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) at org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:128) at org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1458) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) at org.apache.solr.handler.IndexFetcher$FileFetcher.fetchFile(IndexFetcher.java:1390) at org.apache.solr.handler.IndexFetcher.downloadIndexFiles(IndexFetcher.java:872) at org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:438) at org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:254) *Replication configuration of master,repeater,slave's is given below:* ${enable.master:false} commit startup 00:00:10 *Commit Configuration master,repeater,slave's is given below :* 10false Please help in finding the root cause of replication failure.Let me know for any queries. Thanks Parshant kumar <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> --
Re: Frequent Index Replication Failure in solr.
All,please help on this On Tue, Nov 3, 2020, 6:01 PM Parshant Kumar wrote: > Hi team, > > We are having solr architecture as *master->repeater-> 3 slave servers.* > > We are doing incremental indexing on the master server(every 20 min) . > Replication of index is done from master to repeater server(every 10 mins) > and from repeater to 3 slave servers (every 3 hours). > *We are facing the frequent replication failure between master to repeater > server as well as between repeater to slave servers.* > On checking logs found that every time one of the below exceptions > occurred whenever the replication has failed . > > 1)WARN : Error in fetching file: _4rnu_t.liv (downloaded 0 of 11505507 > bytes) > java.io.EOFException: Unexpected end of ZLIB input stream > at > java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) > at > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) > at > org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) > at > org.apache.solr.common.util.FastInputStream.refill(FastInputStream.java:88) > at > org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:139) > at > org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) > at > org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:160) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1443) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) > > > 2) > WARN : Error getting file length for [segments_568] > java.nio.file.NoSuchFileException: > /data/solr/search/application/core-conf/im-search/data/index.20200711012319226/segments_568 > at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at > sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) > at > sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) > at > sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) > at java.nio.file.Files.readAttributes(Files.java:1737) > at java.nio.file.Files.size(Files.java:2332) > at org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:243) > at > org.apache.solr.handler.admin.LukeRequestHandler.getFileLength(LukeRequestHandler.java:615) > at > org.apache.solr.handler.admin.LukeRequestHandler.getIndexInfo(LukeRequestHandler.java:588) > at > org.apache.solr.handler.admin.CoreAdminOperation.getCoreStatus(CoreAdminOperation.java:335) > > 3) > WARN : Error in fetching file: _4nji.nvd (downloaded 507510784 of > 555377795 bytes) > org.apache.http.MalformedChunkCodingException: CRLF expected at end of > chunk > at > org.apache.http.impl.io.ChunkedInputStream.getChunkSize(ChunkedInputStream.java:255) > at > org.apache.http.impl.io.ChunkedInputStream.nextChunk(ChunkedInputStream.java:227) > at > org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:186) > at > org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) > at > java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238) > at > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) > at > org.apache.solr.common.util.FastInputStream.readWrappedStream(FastInputStream.java:79) > at > org.apache.solr.common.util.FastInputStream.read(FastInputStream.java:128) > at > org.apache.solr.common.util.FastInputStream.readFully(FastInputStream.java:166) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetchPackets(IndexFetcher.java:1458) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetch(IndexFetcher.java:1409) > at > org.apache.solr.handler.IndexFetcher$FileFetcher.fetchFile(IndexFetcher.java:1390) > at > org.apache.solr.handler.IndexFetcher.downloadIndexFiles(IndexFetcher.java:872) > at > org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:438) > at > org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:254) > > *Replication configuration of master,repeater,slave's is given below:* > > > > ${enable.master:false} > commit > startup > 00:00:10 > > > > *Commit Configuration master,repeater,slave's is given below :* > > > 10false
Solr collapse & expand queries.
Hi community, I want to implement collapse queries instead of group queries . In solr documentation it is stated that we should prefer collapse & expand queries instead of group queries.Please explain how the collapse & expand queries is better than grouped queries ? How can I implement it ? Do i need to add anything in *solrconfig.xml file* as well or just need to make changes in solr queries like below: *fq={!collapse field=*field*}&expand.rows=n&expand=true instead of group.field=*field*&group=true&group.limit=n* I have done performance testing by making above changes in solr queries and found that query times are almost the same for both collapse queries and group queries. Please help me how to implement it and its advantage over grouped queries. Thanks, Parshant Kumar. --
Queries Regarding Cold searcher
Hi all, Please help me in below queries: 1) what is the impact of making cold searcher false,true? 2)After full replication completion of data on slave server, new searcher is opened or not? 3)If opensearcher is false in autocommit and cold searcher is true , what does this conclude , Is their any interconnection between both of them? Thanks Parshant --
Re: Queries Regarding Cold searcher
Adding more queries :- Do value(true or false) of cold searcher play any role during the completion of replication on slave server.If not please tell in which process in solr its applied? On Thu, Jan 21, 2021 at 3:11 PM Parshant Kumar wrote: > Hi all, > > Please help me in below queries: > > 1) what is the impact of making cold searcher false,true? > 2)After full replication completion of data on slave server, new searcher > is opened or not? > 3)If opensearcher is false in autocommit and cold searcher is true , what > does this conclude , Is their any interconnection between both of them? > > Thanks > Parshant > > --
Increase in response time in case of collapse queries.
Hi all, We have implemented collapse queries in place of grouped queries on our production solr. As mentioned in solr documentation collapse queries are recommended in place of grouped queries in terms of performance . But after switching to collapsed queries from grouped queries response time of queries have increased. This is unexpected behaviour, the response time should have been improved but results are opposites. Please someone help why response time is increased for collapsed queries. Thanks Parshant Kumar --