lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <>
Subject [jira] [Commented] (SOLR-13347) Error writing Transaction log for UUIDField
Date Sun, 02 Jun 2019 01:30:00 GMT


Noble Paul commented on SOLR-13347:

I would like to know if the patch I just submitted fix the problem. If it does not , we will
see investigate this further.

Let me explain why adding new types is a problem

JavabinCodec is a public format using which users can send data to Solr. Whereas TransactionLog
is something Solr internally uses. When we add a new type to JavabinCodec,
 * it is a backward incompatible change. (new clients can't talk to old Solr ) 
 * It also creates problems with compatibility with other formats. i.e. I cans send a UUID
using native format using javabin, but when I'm using json/XML it has to use String. This
requires special handling in Solr to handle data that is coming in as native object vs. String.
So, we are introducing special cases everywhere

I'm OK with having a new type if it is limited to TransactionLog because it is used internally
only. We can do whatever we want .


> Error writing Transaction log for UUIDField
> -------------------------------------------
>                 Key: SOLR-13347
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Server
>    Affects Versions: 7.7, 7.7.1, 8.0
>            Reporter: Thomas Wöckinger
>            Priority: Major
>              Labels: pull-request-available, ready-to-commit, test
>         Attachments: SOLR-13347.patch
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
> 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(
>     at org.apache.solr.common.util.JavaBinCodec.writeVal(
>     at org.apache.solr.common.util.JavaBinCodec.writeArray(
>     at org.apache.solr.common.util.JavaBinCodec.writeKnownType(
>     at org.apache.solr.common.util.JavaBinCodec.writeKnownType(
>     at org.apache.solr.common.util.JavaBinCodec.writeVal(
>     at org.apache.solr.common.util.JavaBinCodec$BinEntryWriter.put(
>     at org.apache.solr.common.MapWriter$EntryWriter.putNoEx(
>     at org.apache.solr.common.MapWriter$EntryWriter.lambda$getBiConsumer$0(
>     at java.base/java.util.LinkedHashMap.forEach(
>     at org.apache.solr.common.SolrInputDocument.writeMap(
>     at org.apache.solr.common.util.JavaBinCodec.writeSolrInputDocument(
>     at org.apache.solr.update.TransactionLog.write(
>     at org.apache.solr.update.UpdateLog.add(
>     at org.apache.solr.update.UpdateLog.add(
>     at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(
>     at org.apache.solr.update.DirectUpdateHandler2.addDoc0(
>     at org.apache.solr.update.DirectUpdateHandler2.addDoc(
>     at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(
>     at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(
>     at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(
>     at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(
>     at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(
>     at org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(
>     at org.apache.solr.handler.loader.JavabinLoader$1.update(
>     at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$StreamingCodec.readOuterMostDocIterator(
>     at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$StreamingCodec.readIterator(
>     at org.apache.solr.common.util.JavaBinCodec.readObject(
>     at org.apache.solr.common.util.JavaBinCodec.readVal(
>     at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$StreamingCodec.readNamedList(
>     at org.apache.solr.common.util.JavaBinCodec.readObject(
>     at org.apache.solr.common.util.JavaBinCodec.readVal(
>     at org.apache.solr.common.util.JavaBinCodec.unmarshal(
>     at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.unmarshal(
>     at org.apache.solr.handler.loader.JavabinLoader.parseAndLoadDocs(
>     at org.apache.solr.handler.loader.JavabinLoader.load(
>     at org.apache.solr.handler.UpdateRequestHandler$1.load(
>     at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(
>     at org.apache.solr.handler.RequestHandlerBase.handleRequest(
>     at org.apache.solr.core.SolrCore.execute(

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message