[
https://issues.apache.org/jira/browse/SOLR-9545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rafał Kuć updated SOLR-9545:
----------------------------
Attachment: SOLR-9545.patch
Attaching a very simple patch, with naive approach to the problem. It logs the
information about the missing pk attribute and in addition to that throws an
exception with a proper message when that happens, so "anonymous" NPE is no
longer thrown.
Let me know, if you would like to have that handled differently :)
> DataImportHandler throws NPE to logs when pk attribute is not present when
> delta query is used
> ----------------------------------------------------------------------------------------------
>
> Key: SOLR-9545
> URL: https://issues.apache.org/jira/browse/SOLR-9545
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: contrib - DataImportHandler
> Affects Versions: 6.2.1
> Reporter: Rafał Kuć
> Priority: Minor
> Fix For: 6.3
>
> Attachments: SOLR-9545.patch
>
>
> Hi,
> Currently, when running a delta query from the Data Import Handler and pk
> parameter is not specified Solr just logs NullPointerExeception, not
> providing any information on what was expected.
> Patch coming soon.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]