You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jason Gerlowski (Jira)" <ji...@apache.org> on 2023/12/14 18:22:00 UTC
[jira] [Commented] (SOLR-17086) v2 Backup and Replica creation: HTTP 500 error messages
[ https://issues.apache.org/jira/browse/SOLR-17086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796868#comment-17796868 ]
Jason Gerlowski commented on SOLR-17086:
----------------------------------------
I spent some time last week working on this, but couldn't manage to reproduce. If anyone else has run into this, or has ideas what might make a repro more likely, please let me know!
[~ozlerhakan] - do you have any sense for what sort of traffic the cluster is seeing when this error occurs? (e.g. Do you see this occasionally regardless of other traffic? Does it only happen if there are other "admin" requests ongoing, etc). Or even better - is there any chance you have logs?
> v2 Backup and Replica creation: HTTP 500 error messages
> -------------------------------------------------------
>
> Key: SOLR-17086
> URL: https://issues.apache.org/jira/browse/SOLR-17086
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Backup/Restore, v2 API
> Affects Versions: 9.4
> Reporter: Hakan Özler
> Assignee: Jason Gerlowski
> Priority: Major
>
> 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:
> {code:java}
> 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' {code}
> Error trace:
> {code:java}
> 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) {code}
>
> 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:
>
> {code:java}
> curl -i -L -X POST \
> -H "Content-Type:application/json" \
> -d \
> '{"type":"NRT", "async": "1"}' \
> 'https://solr.host/api/collections/demo/shards/shard1/replicas' {code}
>
> 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]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org