Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
9.4
-
None
-
None
Description
I've encountered two problems related to the v2 API in 9.4.
1. Creating a backup [1] request using the v2 api directives sporadically returns `An exception was not mapped due to exception mapper failure. The HTTP 500 response will be returned` with the following stack trace. However, the backup process is always successfully completed. Here is an example backup request to produce this problem:
curl -i -L -X POST \ -H "Content-Type:application/json" \ -d \ '{ "repository": "s3", "location": "level-1-folder/level-2-folder/", "async": "1", }' \ 'https://solr.host/api/collections/collection-name/backups/folder-name/versions'
Error trace:
java.lang.NullPointerException: Cannot invoke "org.apache.solr.request.SolrQueryRequest.getParams()" because "solrQueryRequest" is null at org.apache.solr.handler.api.V2ApiUtils.getMediaTypeFromWtParam(V2ApiUtils.java:92) at org.apache.solr.jersey.MediaTypeOverridingFilter.filter(MediaTypeOverridingFilter.java:64) at org.glassfish.jersey.server.ContainerFilteringStage$ResponseFilterStage.apply(ContainerFilteringStage.java:172) at org.glassfish.jersey.server.ContainerFilteringStage$ResponseFilterStage.apply(ContainerFilteringStage.java:139) at org.glassfish.jersey.process.internal.Stages.process(Stages.java:147) at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:378)
2. Creating a replica [2] obviously has the same behavior. We're able to create a replica but we receive the message above at times. A snippet of an ADDREPLICA request:
curl -i -L -X POST \ -H "Content-Type:application/json" \ -d \ '{"type":"NRT", "async": "1"}' \ 'https://solr.host/api/collections/demo/shards/shard1/replicas'
1. https://solr.apache.org/guide/solr/latest/deployment-guide/collection-management.html#backup
2. https://solr.apache.org/guide/solr/latest/deployment-guide/replica-management.html#addreplica