lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-1732) DIH throw exception when configs dups pk on child entity
Date Fri, 07 Aug 2015 11:42:46 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14661698#comment-14661698
] 

Jan Høydahl commented on SOLR-1732:
-----------------------------------

Closing very old issue that appears to not be a real problem any more. Please feel free to
re-open should anyone feel this issue needs a resolution.

> DIH throw exception when configs dups pk on child entity
> --------------------------------------------------------
>
>                 Key: SOLR-1732
>                 URL: https://issues.apache.org/jira/browse/SOLR-1732
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.5
>         Environment: jdk 1.6.0.16/tomcat 6.0/linux centos5.2
>            Reporter: tom liu
>
> data-config.xml like this :
> <document name="products">
>         <entity name="qa" pk="idx" dataSource="db"
>              ...>
>             <field column="idx"   name="id" />
>             <entity name="answer" pk="idx,qaidx" dataSource="db" .../>
> tomcat log is :
> Jan 21, 2010 2:43:05 PM org.apache.solr.handler.dataimport.DataImporter doDeltaImport
> SEVERE: Delta Import Failed
> java.lang.NullPointerException
>         at org.apache.solr.handler.dataimport.DocBuilder.collectDelta(DocBuilder.java:650)
>         at org.apache.solr.handler.dataimport.DocBuilder.collectDelta(DocBuilder.java:616)
>         at org.apache.solr.handler.dataimport.DocBuilder.doDelta(DocBuilder.java:266)
>         at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:174)
>         at org.apache.solr.handler.dataimport.DataImporter.doDeltaImport(DataImporter.java:355)
>         at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:394)
>         at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:373)
> so, i found that in DocBuilder 650 line is :
>         if (modifiedRow.get(entity.getPk()).equals(row.get(entity.getPk()))) {
> modifiedRow not contains 'idx,qaidx' cols.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message