Re: Pull Replica compaints about UpdateLog being disabled when DocBasedVersionConstraintsProcessorFactory

2020-08-06 Thread Erick Erickson
See: SOLR-14715

> On Aug 6, 2020, at 1:58 AM, Tomás Fernández Löbbe  
> wrote:
> 
> This is an interesting bug. I’m wondering if we can completely skip the
> initialization of UpdateRequestProcessorFactories in PULL replicas...
> 
> On Wed, Aug 5, 2020 at 8:40 AM Erick Erickson 
> wrote:
> 
>> Offhand, this looks like a bug, please raise a JIRA.
>> 
>> You said: " We also have DocBasedVersionConstraintsProcessorFactory in our
>> UpdateProcessorChain for optimistic Concurrency.”
>> 
>> Optimistic concurrency is automatically enofrced on the _version_ field.
>> The intent of this processor factory is to allow you finer control over
>> optimistic concurrency by explicitly defining/populating fields. I do
>> wonder whether you need this factory at all. If the intent is that any
>> document with the same  is updated with optimistic concurrency,
>> you don’t need it at all.
>> 
>> Best,
>> Erick
>> 
>>> On Aug 4, 2020, at 2:17 PM, harjags
>>  wrote:
>>> 
>>> DocBasedVersionConstraintsProcessorFactory
>> 
>> 



Re: Pull Replica compaints about UpdateLog being disabled when DocBasedVersionConstraintsProcessorFactory

2020-08-05 Thread Tomás Fernández Löbbe
This is an interesting bug. I’m wondering if we can completely skip the
initialization of UpdateRequestProcessorFactories in PULL replicas...

On Wed, Aug 5, 2020 at 8:40 AM Erick Erickson 
wrote:

> Offhand, this looks like a bug, please raise a JIRA.
>
> You said: " We also have DocBasedVersionConstraintsProcessorFactory in our
> UpdateProcessorChain for optimistic Concurrency.”
>
> Optimistic concurrency is automatically enofrced on the _version_ field.
> The intent of this processor factory is to allow you finer control over
> optimistic concurrency by explicitly defining/populating fields. I do
> wonder whether you need this factory at all. If the intent is that any
> document with the same  is updated with optimistic concurrency,
> you don’t need it at all.
>
> Best,
> Erick
>
> > On Aug 4, 2020, at 2:17 PM, harjags
>  wrote:
> >
> > DocBasedVersionConstraintsProcessorFactory
>
>


Re: Pull Replica compaints about UpdateLog being disabled when DocBasedVersionConstraintsProcessorFactory

2020-08-05 Thread Erick Erickson
Offhand, this looks like a bug, please raise a JIRA.

You said: " We also have DocBasedVersionConstraintsProcessorFactory in our 
UpdateProcessorChain for optimistic Concurrency.”

Optimistic concurrency is automatically enofrced on the _version_ field. The 
intent of this processor factory is to allow you finer control over optimistic 
concurrency by explicitly defining/populating fields. I do wonder whether you 
need this factory at all. If the intent is that any document with the same 
 is updated with optimistic concurrency, you don’t need it at all.

Best,
Erick

> On Aug 4, 2020, at 2:17 PM, harjags  
> wrote:
> 
> DocBasedVersionConstraintsProcessorFactory



Pull Replica compaints about UpdateLog being disabled when DocBasedVersionConstraintsProcessorFactory

2020-08-05 Thread harjags
Hi All,

We have a hybrid cluster with a mix of TLOG and PUll replica. We also have
DocBasedVersionConstraintsProcessorFactory in our UpdateProcessorChain for
optimistic Concurrency.

Our TLOG replicas are our index nodes. When we start them they startup fine
with DocBasedVersionConstraintsProcessorFactory.

Our PULL replicas as our Query nodes. They fail to start with below
exception when DocBasedVersionConstraintsProcessorFactory is added to
UpdateProcessorChain.

[1:03 PM] Srinivasamoorthy, Karthick
   

Caused by: org.apache.solr.common.SolrException: updateLog must be enabled.
at org.apache.solr.core.SolrCore.(SolrCore.java:1014)
at org.apache.solr.core.SolrCore.(SolrCore.java:869)
at
org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1138)
... 45 more
Caused by: org.apache.solr.common.SolrException: updateLog must be enabled.
at
org.apache.solr.update.processor.DocBasedVersionConstraintsProcessorFactory.inform(DocBasedVersionConstraintsProcessorFactory.java:168)
at
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:696)
at org.apache.solr.core.SolrCore.(SolrCore.java:993)
... 47 more


Are we missing any solr configurations?



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html