You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Timothy Potter <th...@apache.org> on 2021/01/07 17:38:51 UTC

Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

This test seems to fail consistently for me on 8x:


org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace


NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
-Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
-Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
-Dtests.timezone=America/Resolute -Dtests.asserts=true
-Dtests.file.encoding=UTF-8

java.lang.AssertionError: {
  "responseHeader":{
    "status":400,
    "QTime":6},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",

"root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
    "details":[{
        "add-field-type":{
          "name":"myNewTextField",
          "class":"solr.TextField",
          "analyzer":{
            "charFilters":[{
                "name":"patternReplace",
                "replacement":"$1$1",
                "pattern":"([a-zA-Z])\\\\1+"}],
            "tokenizer":{"name":"whitespace"},
            "filters":[{"name":"asciiFolding"}]}},
        "errorMessages":["Every charFilter must define a class
property!\n"]}],
    "msg":"error processing commands",
    "code":400}}
 expected null, but was:<{metadata=[error-class,
org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
org.apache.solr.api.ApiBag$ExceptionWithErrObject],
details=[{add-field-type={name=myNewTextField, class=solr.TextField,
analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
define a class property!
]}], msg=error processing commands, code=400}>

at __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotNull(Assert.java:756)
at org.junit.Assert.assertNull(Assert.java:738)
at
org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Re: Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

Posted by Ishan Chattopadhyaya <ic...@gmail.com>.
[ishan@elite110 solr] $ ant -version
Apache Ant(TM) version 1.10.9 compiled on January 10 1970

[ishan@elite110 solr] $ java -version
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment 18.9 (build 11.0.9.1+11)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.9.1+11, mixed mode, sharing)

On Thu, Jan 7, 2021 at 11:32 PM Ishan Chattopadhyaya <
ichattopadhyaya@gmail.com> wrote:

> WHen I try your exact repro line (along with the method name), I get:
> BUILD FAILED
> /home/ishan/code/lucene-solr/lucene/common-build.xml:1616: Not even a
> single test was executed (a typo in the filter pattern maybe?).
>
> When I remove the method name from the repro line, the suite executes and
> passes.
>
> On Thu, Jan 7, 2021 at 11:09 PM Timothy Potter <th...@apache.org>
> wrote:
>
>> This test seems to fail consistently for me on 8x:
>>
>>
>> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace
>>
>>
>> NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
>> -Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
>> -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
>> -Dtests.timezone=America/Resolute -Dtests.asserts=true
>> -Dtests.file.encoding=UTF-8
>>
>> java.lang.AssertionError: {
>>   "responseHeader":{
>>     "status":400,
>>     "QTime":6},
>>   "error":{
>>     "metadata":[
>>       "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
>>
>> "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
>>     "details":[{
>>         "add-field-type":{
>>           "name":"myNewTextField",
>>           "class":"solr.TextField",
>>           "analyzer":{
>>             "charFilters":[{
>>                 "name":"patternReplace",
>>                 "replacement":"$1$1",
>>                 "pattern":"([a-zA-Z])\\\\1+"}],
>>             "tokenizer":{"name":"whitespace"},
>>             "filters":[{"name":"asciiFolding"}]}},
>>         "errorMessages":["Every charFilter must define a class
>> property!\n"]}],
>>     "msg":"error processing commands",
>>     "code":400}}
>>  expected null, but was:<{metadata=[error-class,
>> org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
>> org.apache.solr.api.ApiBag$ExceptionWithErrObject],
>> details=[{add-field-type={name=myNewTextField, class=solr.TextField,
>> analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
>> pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
>> filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
>> define a class property!
>> ]}], msg=error processing commands, code=400}>
>>
>> at
>> __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
>> at org.junit.Assert.fail(Assert.java:89)
>> at org.junit.Assert.failNotNull(Assert.java:756)
>> at org.junit.Assert.assertNull(Assert.java:738)
>> at
>> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>>
>

Re: Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

Posted by Ishan Chattopadhyaya <ic...@gmail.com>.
Yeah, my bad. I was on an older commit (commit
e1e55090fb58854ba5bb0b2aa3fdd590a29a1fcc) inadvertently, even though I
thought I was on the tip of the branch.



On Fri, Jan 8, 2021 at 2:18 AM Timothy potter <th...@gmail.com> wrote:

> Awesome! Thanks for fixing that quickly ... and thank you Hossman for
> spotting the discrepancy between Ishan’s result as i was scratching my head
> on what was wrong with my env, I guess I just assume people sync with
> upstream before commenting on test failures ;-)
>
> On Jan 7, 2021, at 11:44 AM, Munendra S N <sn...@gmail.com> wrote:
>
> 
> Test failure is fixed now
> https://github.com/apache/lucene-solr/commit/514c4b1e491c1c93b7b928731437dcbe932237f9
>
> Thanks,
> Munendra S N
>
>
>
> On Fri, Jan 8, 2021 at 12:00 AM Munendra S N <sn...@gmail.com>
> wrote:
>
>> I'm looking into this
>>
>> Regards,
>> Munendra S N
>>
>>
>>
>> On Thu, Jan 7, 2021 at 11:54 PM Chris Hostetter <ho...@fucit.org>
>> wrote:
>>
>>>
>>> : WHen I try your exact repro line (along with the method name), I get:
>>> : BUILD FAILED
>>> : /home/ishan/code/lucene-solr/lucene/common-build.xml:1616: Not even a
>>> : single test was executed (a typo in the filter pattern maybe?).
>>>
>>> your repo is stale Ishan -- it's a test that was committed today...
>>>
>>> https://issues.apache.org/jira/browse/SOLR-14950
>>>
>>>
>>> : On Thu, Jan 7, 2021 at 11:09 PM Timothy Potter <th...@apache.org>
>>> : wrote:
>>> :
>>> : > This test seems to fail consistently for me on 8x:
>>> : >
>>> : >
>>> : >
>>> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace
>>> : >
>>> : >
>>> : > NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
>>> : > -Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
>>> : > -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
>>> : > -Dtests.timezone=America/Resolute -Dtests.asserts=true
>>> : > -Dtests.file.encoding=UTF-8
>>> : >
>>> : > java.lang.AssertionError: {
>>> : >   "responseHeader":{
>>> : >     "status":400,
>>> : >     "QTime":6},
>>> : >   "error":{
>>> : >     "metadata":[
>>> : >
>>>  "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
>>> : >
>>> : >
>>> "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
>>> : >     "details":[{
>>> : >         "add-field-type":{
>>> : >           "name":"myNewTextField",
>>> : >           "class":"solr.TextField",
>>> : >           "analyzer":{
>>> : >             "charFilters":[{
>>> : >                 "name":"patternReplace",
>>> : >                 "replacement":"$1$1",
>>> : >                 "pattern":"([a-zA-Z])\\\\1+"}],
>>> : >             "tokenizer":{"name":"whitespace"},
>>> : >             "filters":[{"name":"asciiFolding"}]}},
>>> : >         "errorMessages":["Every charFilter must define a class
>>> : > property!\n"]}],
>>> : >     "msg":"error processing commands",
>>> : >     "code":400}}
>>> : >  expected null, but was:<{metadata=[error-class,
>>> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
>>> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject],
>>> : > details=[{add-field-type={name=myNewTextField, class=solr.TextField,
>>> : > analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
>>> : > pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
>>> : > filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
>>> : > define a class property!
>>> : > ]}], msg=error processing commands, code=400}>
>>> : >
>>> : > at
>>> __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
>>> : > at org.junit.Assert.fail(Assert.java:89)
>>> : > at org.junit.Assert.failNotNull(Assert.java:756)
>>> : > at org.junit.Assert.assertNull(Assert.java:738)
>>> : > at
>>> : >
>>> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
>>> : > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> : > at
>>> : >
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> : > at
>>> : >
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> : > at java.lang.reflect.Method.invoke(Method.java:498)
>>> : >
>>> :
>>>
>>> -Hoss
>>> http://www.lucidworks.com/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>>
>>>

Re: Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

Posted by Timothy potter <th...@gmail.com>.
Awesome! Thanks for fixing that quickly ... and thank you Hossman for spotting the discrepancy between Ishan’s result as i was scratching my head on what was wrong with my env, I guess I just assume people sync with upstream before commenting on test failures ;-)

> On Jan 7, 2021, at 11:44 AM, Munendra S N <sn...@gmail.com> wrote:
> 
> 
> Test failure is fixed now https://github.com/apache/lucene-solr/commit/514c4b1e491c1c93b7b928731437dcbe932237f9
> 
> Thanks,
> Munendra S N
> 
> 
> 
>> On Fri, Jan 8, 2021 at 12:00 AM Munendra S N <sn...@gmail.com> wrote:
>> I'm looking into this
>> 
>> Regards,
>> Munendra S N
>> 
>> 
>> 
>>> On Thu, Jan 7, 2021 at 11:54 PM Chris Hostetter <ho...@fucit.org> wrote:
>>> 
>>> : WHen I try your exact repro line (along with the method name), I get:
>>> : BUILD FAILED
>>> : /home/ishan/code/lucene-solr/lucene/common-build.xml:1616: Not even a
>>> : single test was executed (a typo in the filter pattern maybe?).
>>> 
>>> your repo is stale Ishan -- it's a test that was committed today...
>>> 
>>> https://issues.apache.org/jira/browse/SOLR-14950
>>> 
>>> 
>>> : On Thu, Jan 7, 2021 at 11:09 PM Timothy Potter <th...@apache.org>
>>> : wrote:
>>> : 
>>> : > This test seems to fail consistently for me on 8x:
>>> : >
>>> : >
>>> : > org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace
>>> : >
>>> : >
>>> : > NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
>>> : > -Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
>>> : > -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
>>> : > -Dtests.timezone=America/Resolute -Dtests.asserts=true
>>> : > -Dtests.file.encoding=UTF-8
>>> : >
>>> : > java.lang.AssertionError: {
>>> : >   "responseHeader":{
>>> : >     "status":400,
>>> : >     "QTime":6},
>>> : >   "error":{
>>> : >     "metadata":[
>>> : >       "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
>>> : >
>>> : > "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
>>> : >     "details":[{
>>> : >         "add-field-type":{
>>> : >           "name":"myNewTextField",
>>> : >           "class":"solr.TextField",
>>> : >           "analyzer":{
>>> : >             "charFilters":[{
>>> : >                 "name":"patternReplace",
>>> : >                 "replacement":"$1$1",
>>> : >                 "pattern":"([a-zA-Z])\\\\1+"}],
>>> : >             "tokenizer":{"name":"whitespace"},
>>> : >             "filters":[{"name":"asciiFolding"}]}},
>>> : >         "errorMessages":["Every charFilter must define a class
>>> : > property!\n"]}],
>>> : >     "msg":"error processing commands",
>>> : >     "code":400}}
>>> : >  expected null, but was:<{metadata=[error-class,
>>> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
>>> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject],
>>> : > details=[{add-field-type={name=myNewTextField, class=solr.TextField,
>>> : > analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
>>> : > pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
>>> : > filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
>>> : > define a class property!
>>> : > ]}], msg=error processing commands, code=400}>
>>> : >
>>> : > at __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
>>> : > at org.junit.Assert.fail(Assert.java:89)
>>> : > at org.junit.Assert.failNotNull(Assert.java:756)
>>> : > at org.junit.Assert.assertNull(Assert.java:738)
>>> : > at
>>> : > org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
>>> : > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> : > at
>>> : > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> : > at
>>> : > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> : > at java.lang.reflect.Method.invoke(Method.java:498)
>>> : >
>>> : 
>>> 
>>> -Hoss
>>> http://www.lucidworks.com/
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>> 

Re: Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

Posted by Munendra S N <sn...@gmail.com>.
Test failure is fixed now
https://github.com/apache/lucene-solr/commit/514c4b1e491c1c93b7b928731437dcbe932237f9

Thanks,
Munendra S N



On Fri, Jan 8, 2021 at 12:00 AM Munendra S N <sn...@gmail.com>
wrote:

> I'm looking into this
>
> Regards,
> Munendra S N
>
>
>
> On Thu, Jan 7, 2021 at 11:54 PM Chris Hostetter <ho...@fucit.org>
> wrote:
>
>>
>> : WHen I try your exact repro line (along with the method name), I get:
>> : BUILD FAILED
>> : /home/ishan/code/lucene-solr/lucene/common-build.xml:1616: Not even a
>> : single test was executed (a typo in the filter pattern maybe?).
>>
>> your repo is stale Ishan -- it's a test that was committed today...
>>
>> https://issues.apache.org/jira/browse/SOLR-14950
>>
>>
>> : On Thu, Jan 7, 2021 at 11:09 PM Timothy Potter <th...@apache.org>
>> : wrote:
>> :
>> : > This test seems to fail consistently for me on 8x:
>> : >
>> : >
>> : > org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace
>> : >
>> : >
>> : > NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
>> : > -Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
>> : > -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
>> : > -Dtests.timezone=America/Resolute -Dtests.asserts=true
>> : > -Dtests.file.encoding=UTF-8
>> : >
>> : > java.lang.AssertionError: {
>> : >   "responseHeader":{
>> : >     "status":400,
>> : >     "QTime":6},
>> : >   "error":{
>> : >     "metadata":[
>> : >
>>  "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
>> : >
>> : >
>> "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
>> : >     "details":[{
>> : >         "add-field-type":{
>> : >           "name":"myNewTextField",
>> : >           "class":"solr.TextField",
>> : >           "analyzer":{
>> : >             "charFilters":[{
>> : >                 "name":"patternReplace",
>> : >                 "replacement":"$1$1",
>> : >                 "pattern":"([a-zA-Z])\\\\1+"}],
>> : >             "tokenizer":{"name":"whitespace"},
>> : >             "filters":[{"name":"asciiFolding"}]}},
>> : >         "errorMessages":["Every charFilter must define a class
>> : > property!\n"]}],
>> : >     "msg":"error processing commands",
>> : >     "code":400}}
>> : >  expected null, but was:<{metadata=[error-class,
>> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
>> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject],
>> : > details=[{add-field-type={name=myNewTextField, class=solr.TextField,
>> : > analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
>> : > pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
>> : > filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
>> : > define a class property!
>> : > ]}], msg=error processing commands, code=400}>
>> : >
>> : > at
>> __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
>> : > at org.junit.Assert.fail(Assert.java:89)
>> : > at org.junit.Assert.failNotNull(Assert.java:756)
>> : > at org.junit.Assert.assertNull(Assert.java:738)
>> : > at
>> : >
>> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
>> : > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> : > at
>> : >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> : > at
>> : >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> : > at java.lang.reflect.Method.invoke(Method.java:498)
>> : >
>> :
>>
>> -Hoss
>> http://www.lucidworks.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>

Re: Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

Posted by Munendra S N <sn...@gmail.com>.
I'm looking into this

Regards,
Munendra S N



On Thu, Jan 7, 2021 at 11:54 PM Chris Hostetter <ho...@fucit.org>
wrote:

>
> : WHen I try your exact repro line (along with the method name), I get:
> : BUILD FAILED
> : /home/ishan/code/lucene-solr/lucene/common-build.xml:1616: Not even a
> : single test was executed (a typo in the filter pattern maybe?).
>
> your repo is stale Ishan -- it's a test that was committed today...
>
> https://issues.apache.org/jira/browse/SOLR-14950
>
>
> : On Thu, Jan 7, 2021 at 11:09 PM Timothy Potter <th...@apache.org>
> : wrote:
> :
> : > This test seems to fail consistently for me on 8x:
> : >
> : >
> : > org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace
> : >
> : >
> : > NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
> : > -Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
> : > -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
> : > -Dtests.timezone=America/Resolute -Dtests.asserts=true
> : > -Dtests.file.encoding=UTF-8
> : >
> : > java.lang.AssertionError: {
> : >   "responseHeader":{
> : >     "status":400,
> : >     "QTime":6},
> : >   "error":{
> : >     "metadata":[
> : >
>  "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
> : >
> : >
> "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
> : >     "details":[{
> : >         "add-field-type":{
> : >           "name":"myNewTextField",
> : >           "class":"solr.TextField",
> : >           "analyzer":{
> : >             "charFilters":[{
> : >                 "name":"patternReplace",
> : >                 "replacement":"$1$1",
> : >                 "pattern":"([a-zA-Z])\\\\1+"}],
> : >             "tokenizer":{"name":"whitespace"},
> : >             "filters":[{"name":"asciiFolding"}]}},
> : >         "errorMessages":["Every charFilter must define a class
> : > property!\n"]}],
> : >     "msg":"error processing commands",
> : >     "code":400}}
> : >  expected null, but was:<{metadata=[error-class,
> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
> : > org.apache.solr.api.ApiBag$ExceptionWithErrObject],
> : > details=[{add-field-type={name=myNewTextField, class=solr.TextField,
> : > analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
> : > pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
> : > filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
> : > define a class property!
> : > ]}], msg=error processing commands, code=400}>
> : >
> : > at
> __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
> : > at org.junit.Assert.fail(Assert.java:89)
> : > at org.junit.Assert.failNotNull(Assert.java:756)
> : > at org.junit.Assert.assertNull(Assert.java:738)
> : > at
> : >
> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
> : > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> : > at
> : >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> : > at
> : >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> : > at java.lang.reflect.Method.invoke(Method.java:498)
> : >
> :
>
> -Hoss
> http://www.lucidworks.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

Posted by Chris Hostetter <ho...@fucit.org>.
: WHen I try your exact repro line (along with the method name), I get:
: BUILD FAILED
: /home/ishan/code/lucene-solr/lucene/common-build.xml:1616: Not even a
: single test was executed (a typo in the filter pattern maybe?).

your repo is stale Ishan -- it's a test that was committed today...

https://issues.apache.org/jira/browse/SOLR-14950


: On Thu, Jan 7, 2021 at 11:09 PM Timothy Potter <th...@apache.org>
: wrote:
: 
: > This test seems to fail consistently for me on 8x:
: >
: >
: > org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace
: >
: >
: > NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
: > -Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
: > -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
: > -Dtests.timezone=America/Resolute -Dtests.asserts=true
: > -Dtests.file.encoding=UTF-8
: >
: > java.lang.AssertionError: {
: >   "responseHeader":{
: >     "status":400,
: >     "QTime":6},
: >   "error":{
: >     "metadata":[
: >       "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
: >
: > "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
: >     "details":[{
: >         "add-field-type":{
: >           "name":"myNewTextField",
: >           "class":"solr.TextField",
: >           "analyzer":{
: >             "charFilters":[{
: >                 "name":"patternReplace",
: >                 "replacement":"$1$1",
: >                 "pattern":"([a-zA-Z])\\\\1+"}],
: >             "tokenizer":{"name":"whitespace"},
: >             "filters":[{"name":"asciiFolding"}]}},
: >         "errorMessages":["Every charFilter must define a class
: > property!\n"]}],
: >     "msg":"error processing commands",
: >     "code":400}}
: >  expected null, but was:<{metadata=[error-class,
: > org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
: > org.apache.solr.api.ApiBag$ExceptionWithErrObject],
: > details=[{add-field-type={name=myNewTextField, class=solr.TextField,
: > analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
: > pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
: > filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
: > define a class property!
: > ]}], msg=error processing commands, code=400}>
: >
: > at __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
: > at org.junit.Assert.fail(Assert.java:89)
: > at org.junit.Assert.failNotNull(Assert.java:756)
: > at org.junit.Assert.assertNull(Assert.java:738)
: > at
: > org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
: > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: > at
: > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
: > at
: > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
: > at java.lang.reflect.Method.invoke(Method.java:498)
: >
: 

-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Failing test on branch_8x: org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace

Posted by Ishan Chattopadhyaya <ic...@gmail.com>.
WHen I try your exact repro line (along with the method name), I get:
BUILD FAILED
/home/ishan/code/lucene-solr/lucene/common-build.xml:1616: Not even a
single test was executed (a typo in the filter pattern maybe?).

When I remove the method name from the repro line, the suite executes and
passes.

On Thu, Jan 7, 2021 at 11:09 PM Timothy Potter <th...@apache.org>
wrote:

> This test seems to fail consistently for me on 8x:
>
>
> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace
>
>
> NOTE: reproduce with: ant test  -Dtestcase=TestBulkSchemaAPI
> -Dtests.method=testCopyFieldWithReplace -Dtests.seed=7657D4FA16A76DC8
> -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY
> -Dtests.timezone=America/Resolute -Dtests.asserts=true
> -Dtests.file.encoding=UTF-8
>
> java.lang.AssertionError: {
>   "responseHeader":{
>     "status":400,
>     "QTime":6},
>   "error":{
>     "metadata":[
>       "error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
>
> "root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
>     "details":[{
>         "add-field-type":{
>           "name":"myNewTextField",
>           "class":"solr.TextField",
>           "analyzer":{
>             "charFilters":[{
>                 "name":"patternReplace",
>                 "replacement":"$1$1",
>                 "pattern":"([a-zA-Z])\\\\1+"}],
>             "tokenizer":{"name":"whitespace"},
>             "filters":[{"name":"asciiFolding"}]}},
>         "errorMessages":["Every charFilter must define a class
> property!\n"]}],
>     "msg":"error processing commands",
>     "code":400}}
>  expected null, but was:<{metadata=[error-class,
> org.apache.solr.api.ApiBag$ExceptionWithErrObject, root-error-class,
> org.apache.solr.api.ApiBag$ExceptionWithErrObject],
> details=[{add-field-type={name=myNewTextField, class=solr.TextField,
> analyzer={charFilters=[{name=patternReplace, replacement=$1$1,
> pattern=([a-zA-Z])\\1+}], tokenizer={name=whitespace},
> filters=[{name=asciiFolding}]}}, errorMessages=[Every charFilter must
> define a class property!
> ]}], msg=error processing commands, code=400}>
>
> at __randomizedtesting.SeedInfo.seed([7657D4FA16A76DC8:B096864C3F5D3F33]:0)
> at org.junit.Assert.fail(Assert.java:89)
> at org.junit.Assert.failNotNull(Assert.java:756)
> at org.junit.Assert.assertNull(Assert.java:738)
> at
> org.apache.solr.rest.schema.TestBulkSchemaAPI.testCopyFieldWithReplace(TestBulkSchemaAPI.java:734)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
>