On 12/11/2013 5:01 PM, dboychuck wrote: > I am running a data import and it is throwing all kinds of errors. I am > upgrading to 4.6 from 4.5.1 with the exact schema and solrconfig and dih > configs. > > Here is the error I am getting: > > org.apache.solr.common.SolrException: ERROR: [doc=k-690kohler!670614] Error > adding field 'weight'='java.math.BigDecimal:9.28' msg=For input string: > "java.math.BigDecimal:9.28" > at > org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:167) > at > org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:77) > at > org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:215) > at > org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69) > at > org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51) > at > org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:569) > at > org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:705) > at > org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:435) > at org.apache.solr.update.PeerSync.handleUpdates(PeerSync.java:482) > at org.apache.solr.update.PeerSync.handleResponse(PeerSync.java:330) > at org.apache.solr.update.PeerSync.sync(PeerSync.java:260) > at > org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:387) > at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:244) > Caused by: java.lang.NumberFormatException: For input string: > "java.math.BigDecimal:9.28" > at > sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1241) > at java.lang.Float.parseFloat(Float.java:452) > at org.apache.solr.schema.TrieField.createField(TrieField.java:593) > at org.apache.solr.schema.TrieField.createFields(TrieField.java:650) > at > org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java:47) > at > org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:118) > ... 12 more
I have been discussing this with David on IRC. Everything works perfectly for him on 4.5.1 with identical configs. On 4.6.0, the update succeeds on the server where DIH is running, but fails when the update is forwarded to SolrCloud replicas. The source database is MSSQL, with a decimal DB column and a TrieFloatField in Solr. I am not sure yet what the problem is. I know that there's been a lot of code tightening going on in order to fix SolrCloud indexing deadlocks. Thanks, Shawn