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

SolrResponse serialVersionUID has changed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 8.4
    • Fix Version/s: 8.4.1
    • Component/s: None
    • Labels:
      None

      Description

      SOLR-13821 changed the signature of org.apache.solr.client.solrj.SolrResponse, making serialisations of the class incompatible between versions.

      Original text from SOLR-13821:

      hi,
      We've been experimenting with doing a rolling in-place upgrade from Solr 8.3.1 to 8.4.0 on a non-production system, but have found that we get this exception for some operations, including when requesting /solr/admin/collections?action=overseerstatus on a node whose version is inconsistent with the overseer:
      java.io.InvalidClassException: org.apache.solr.client.solrj.SolrResponse; local class incompatible: stream classdesc serialVersionUID = -7931100103360242645, local class serialVersionUID = 2239939671435624715
      As far as I can see, this is due to the change to the SolrResponse class's signature in commit e3bd5a7. My experimentation has shown that if the serialVersionUID of that class is set explicitly to its previous value the exception no longer occurs.
      I'm not sure if this is a necessary or good fix, but I wanted to share this issue with you in case it's something that you think needs resolving.
      thanks,
      Andy

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                noble.paul Noble Paul
                Reporter:
                andywebb1975 Andy Webb
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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