Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12061

NPE in V1 to V2 API Mapper when using substitutions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.3, 8.0
    • None
    • None

    Description

      Reproducing master seed from https://jenkins.thetaphi.de/job/Lucene-Solr-master-Windows/7204/ (reproduces for me on LInux):

         [junit4] Suite: org.apache.solr.client.solrj.request.TestV1toV2ApiMapper
         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestV1toV2ApiMapper -Dtests.method=testCommands -Dtests.seed=8BD251EC0EE042E0 -Dtests.slow=true -Dtests.locale=sk-SK -Dtests.timezone=America/Araguaina -Dtests.asserts=true -Dtests.file.encoding=Cp1252
         [junit4] ERROR   0.03s J0 | TestV1toV2ApiMapper.testCommands <<<
         [junit4]    > Throwable #1: java.lang.RuntimeException: null value is not valid for name
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([8BD251EC0EE042E0:AAEE981464DAA284]:0)
         [junit4]    > 	at org.apache.solr.client.solrj.request.V1toV2ApiMapper$ActionInfo.lambda$null$2(V1toV2ApiMapper.java:108)
         [junit4]    > 	at org.apache.solr.common.MapWriter.toMap(MapWriter.java:42)
         [junit4]    > 	at org.apache.solr.common.MapWriter$1.put(MapWriter.java:45)
         [junit4]    > 	at org.apache.solr.client.solrj.request.V1toV2ApiMapper$ActionInfo.lambda$serializeToV2Format$3(V1toV2ApiMapper.java:98)
         [junit4]    > 	at org.apache.solr.common.MapWriter.toMap(MapWriter.java:42)
         [junit4]    > 	at org.apache.solr.client.solrj.request.V1toV2ApiMapper$ActionInfo.convert(V1toV2ApiMapper.java:87)
         [junit4]    > 	at org.apache.solr.client.solrj.request.V1toV2ApiMapper.convert(V1toV2ApiMapper.java:137)
         [junit4]    > 	at org.apache.solr.client.solrj.request.TestV1toV2ApiMapper.testCommands(TestV1toV2ApiMapper.java:55)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): {}, docValues:{}, maxPointsInLeafNode=1930, maxMBSortInHeap=5.7539348379000055, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@1313219), locale=sk-SK, timezone=America/Araguaina
         [junit4]   2> NOTE: Windows 10 10.0 x86/Oracle Corporation 1.8.0_144 (32-bit)/cpus=3,threads=1,free=103812072,total=282828800
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tflobbe Tomas Eduardo Fernandez Lobbe
            sarowe Steven Rowe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment