[
https://issues.apache.org/jira/browse/SOLR-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-3903:
---------------------------
Attachment: SOLR-3903.patch
the fix was trivial, but i spent over an hour trying ot figure out how to
modify SolrExampleTests to reliably detect the failure in it's generic way
before giving up and writing a one-off test for this.
still doing some more exhaustive testing and then i'll commit and backport
> Solrj library raises MissingFormatArgumentException when comitting update
> requests with parameters
> ---------------------------------------------------------------------------------------------------
>
> Key: SOLR-3903
> URL: https://issues.apache.org/jira/browse/SOLR-3903
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Affects Versions: 4.0-BETA
> Environment: Ubuntu 12.04, Solr 4.0.0-BETA running in a VirtualBox
> Reporter: Cedric Meury
> Assignee: Hoss Man
> Priority: Minor
> Fix For: 4.0
>
> Attachments: SOLR-3903.patch
>
>
> *Observation*
> * When the code pasted below is executed, a MissingFormatArgumentException is
> raised (Format specifier 's').
> * If setAction(..) is not called, no exception is thrown.
> *Solution*
> * Fixing the format call in ConcurrentUpdateSolrServer:164 might resolve the
> issue.
> *Information*
> * The issue is present in
> [trunk|http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.java?view=markup].
> * I don't have the resources available to submit a proper patch at the
> moment, but might do so in the future. Meanwhile I'm posting this bug to let
> you know.
> {code:java}
> ConcurrentUpdateSolrServer server = new
> ConcurrentUpdateSolrServer("http://localhost:8983/solr/collection1", 2, 2);
> UpdateRequest updateRequest = new UpdateRequest();
> SolrInputDocument document = new SolrInputDocument();
> updateRequest.add(document);
> updateRequest.setAction(UpdateRequest.ACTION.COMMIT, false, false);
> server.request(updateRequest);
> server.commit();
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]