Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9197 Audit all solrconfig components and ensure that they work with the Config APIs
  3. SOLR-9359

Listener added using Config API results in ClassCastException in the logs

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.0.1
    • None
    • config-api
    • None
    • SolrClound on Windows with ZooKeeper 3.4.8

    Description

      Adding a listener using the Config API results in an exception in the logs even if the call to the API was successful.

      Command used to add the listener:

      curl -k -u admin:admin https://solrserver:8443/solr/customer/config -H 'Content-type:application/json' -d '{ "add-listener": {"event":"firstSearcher","class":"solr.QuerySenderListener","name":"f7fb2d87bea44464af2401cf33f42b69","queries":[

      {"q":"static firstSearcher warming in solrconfig.xml"}

      ]} }'

      Result:
      {
      "responseHeader":

      { "status":0, "QTime":117}

      ,
      "WARNING":"This response format is experimental. It is likely to change in the future."}

      In the Admin UI Logging section I can see the following error:
      SolrCore null:java.lang.ClassCastException

      The log files does not provide additional information.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            alexandre.drouin Alex D

            Dates

              Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 3h 40m
              3h 40m

              Slack

                Issue deployment