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)

Reply via email to