lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Heisey (JIRA)" <>
Subject [jira] [Commented] (SOLR-5551) Error while updating replicas
Date Mon, 07 Apr 2014 19:25:16 GMT


Shawn Heisey commented on SOLR-5551:

[~csbubbles]: You'll need to provide options to your JDBC driver that force it to use standard
Java data types, or you'll need to change the SQL that you are sending so that it produces
standard types.  You'll need to contact your database vendor for help constructing the JDBC
URL or the SQL query.

I have no idea why the issue reporter was able to get it working on an older release of Solr.
 I've seen similar issues with older releases of Solr.

Closing the issue as invalid.  If you want to support nonstandard data types in DIH, you'll
need to write custom code.

Repeating my followup on the mailing list thread:

The real problem here is not DIH, but the JDBC driver.  The convertType parameter that you
have set is for your JDBC driver. For most people, these details don't matter, because they
are writing Java code themselves and can adjust according to the peculiarities of a specific
JDBC driver.  DIH is a *generic* solution that can only deal with standard types.

BigDecimal is not a standard java data type. Although it is included in the standard JVM,
it is part of the *math* package, it is not built into Java.

You might wonder why DIH doesn't convert the data.  The answer is that without the programmer
explicitly providing code to detect each nonstandard type, it won't know *HOW* to convert
it. Solr and Lucene can't be expected to support every data type, especially if the data type
is not even available until you import a class. 

> Error while updating replicas
> -----------------------------
>                 Key: SOLR-5551
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.6
>            Reporter: David Boychuck
> There is an error with peersynch in SolrCloud mode with decimal values. I have described
the issue in detail here:

This message was sent by Atlassian JIRA

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

View raw message