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

Error writing Transaction log for UUIDField

    XMLWordPrintableJSON

    Details

      Description

      When using Atomic Update, adding a value leads to following Exception

      org.apache.solr.common.SolrException: TransactionLog doesn't know how to serialize class java.util.UUID; try implementing ObjectResolver?
          at org.apache.solr.update.TransactionLog$1.resolve(TransactionLog.java:100)
          at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:263)
          at org.apache.solr.common.util.JavaBinCodec.writeArray(JavaBinCodec.java:770)
          at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:369)
          at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:362)
          at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:252)
          at org.apache.solr.common.util.JavaBinCodec$BinEntryWriter.put(JavaBinCodec.java:437)
          at org.apache.solr.common.MapWriter$EntryWriter.putNoEx(MapWriter.java:100)
          at org.apache.solr.common.MapWriter$EntryWriter.lambda$getBiConsumer$0(MapWriter.java:160)
          at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
          at org.apache.solr.common.SolrInputDocument.writeMap(SolrInputDocument.java:51)
          at org.apache.solr.common.util.JavaBinCodec.writeSolrInputDocument(JavaBinCodec.java:657)
          at org.apache.solr.update.TransactionLog.write(TransactionLog.java:371)
          at org.apache.solr.update.UpdateLog.add(UpdateLog.java:573)
          at org.apache.solr.update.UpdateLog.add(UpdateLog.java:552)
          at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:351)
          at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:289)
          at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:236)
          at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:76)
          at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:55)
          at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:995)
          at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:1216)
          at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:700)
          at org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:103)
          at org.apache.solr.handler.loader.JavabinLoader$1.update(JavabinLoader.java:110)
          at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$StreamingCodec.readOuterMostDocIterator(JavaBinUpdateRequestCodec.java:327)
          at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$StreamingCodec.readIterator(JavaBinUpdateRequestCodec.java:280)
          at org.apache.solr.common.util.JavaBinCodec.readObject(JavaBinCodec.java:335)
          at org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:280)
          at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$StreamingCodec.readNamedList(JavaBinUpdateRequestCodec.java:235)
          at org.apache.solr.common.util.JavaBinCodec.readObject(JavaBinCodec.java:300)
          at org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:280)
          at org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:193)
          at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.unmarshal(JavaBinUpdateRequestCodec.java:126)
          at org.apache.solr.handler.loader.JavabinLoader.parseAndLoadDocs(JavabinLoader.java:123)
          at org.apache.solr.handler.loader.JavabinLoader.load(JavabinLoader.java:70)
          at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:97)
          at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:68)
          at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
          at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559)

        Attachments

        1. SOLR-13347.patch
          1.0 kB
          Noble Paul

          Issue Links

            Activity

              People

              • Assignee:
                noble.paul Noble Paul
                Reporter:
                thomas.woeckinger Thomas Wöckinger
              • Votes:
                0 Vote for this issue
                Watchers:
                7 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 - 4h
                  4h