Hello team - Can you pl comment on this please?

-Amit.


On Mon, Mar 31, 2014 at 12:11 PM, Amit Soni <[email protected]> wrote:

> Also to add: it seems that even VersionType.EXTERNAL is broken in the new
> version (1.1.0) since it now does the validation of input version number
> and it does not allow a save if the input version number is zero.
>
> Looking for inputs from ES team on how to proceed on this.
>
> -Amit.
>
>
> On Mon, Mar 31, 2014 at 12:02 PM, Amit Soni <[email protected]> wrote:
>
>> Hello team - I just switched over to 1.1.0 and changed from
>> VersionType.EXTERNAL to VersionType.EXTERNAL_GTE. Ever since then, we are
>> seeing the error below.
>>
>> Any comments?
>>
>> I looked at ES code and see this newly added line for EXTERNAL_GTE. Does
>> it mean we dont support zero as a valid version number? Our systems use
>> zero as the start version number.
>>
>>        @Override
>>         public boolean validateVersion(long version) {
>>             return version > 0L;
>>         }
>>
>> org.elasticsearch.action.ActionRequestValidationException: Validation
>> Failed: 1: illegal version value [0] for version type [EXTERNAL_GTE];
>>     at
>> org.elasticsearch.action.ValidateActions.addValidationError(ValidateActions.java:29)
>>     at
>> org.elasticsearch.action.index.IndexRequest.validate(IndexRequest.java:181)
>>     at
>> org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:63)
>>     at
>> org.elasticsearch.client.transport.support.InternalTransportClient$2.doWithNode(InternalTransportClient.java:109)
>>     at
>> org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:228)
>>     at
>> org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)
>>     at
>> org.elasticsearch.client.support.AbstractClient.index(AbstractClient.java:82)
>>     at
>> org.elasticsearch.client.transport.TransportClient.index(TransportClient.java:330)
>>     at
>> org.elasticsearch.action.index.IndexRequestBuilder.doExecute(IndexRequestBuilder.java:314)
>>     at
>> org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)
>>     at
>> org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)
>>
>> -Amit.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAAOGaQL4EsD37TPGmW89QTcM0YpvEK4zwT%2BJ9u35Fe8%2BvSwoOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to