Errors when running against Solr 4.5.1 + patch

174 views
Skip to first unread message

Javier Méndez

unread,
Oct 30, 2013, 7:25:56 PM10/30/13
to solr...@googlegroups.com
I got the following errors when running against Solr 4.5.1

[Thread-693]|ERROR|[com.plugtree.solrmeter.model.statistic.CacheHistoryStatistic]|16:18:06,577 | Could not update statistic
com.plugtree.solrmeter.model.exception.StatisticConnectionException: java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.String
    at com.plugtree.solrmeter.model.statistic.RequestHandlerConnection.getData(RequestHandlerConnection.java:72)
    at com.plugtree.solrmeter.model.statistic.CacheHistoryStatistic.updateData(CacheHistoryStatistic.java:114)
    at com.plugtree.solrmeter.model.statistic.CacheHistoryStatistic$StatisticUpdateThread.run(CacheHistoryStatistic.java:163)
Caused by: java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.String
    at com.plugtree.solrmeter.model.statistic.RequestHandlerConnection.getCacheData(RequestHandlerConnection.java:84)
    at com.plugtree.solrmeter.model.statistic.RequestHandlerConnection.getData(RequestHandlerConnection.java:62)
    ... 2 more

Re-built Solrmeter to the latest version and got:

Exception in thread "Thread-611" java.lang.NullPointerException
    at com.plugtree.solrmeter.model.operation.QueryOperation.execute(QueryOperation.java:54)
    at com.plugtree.solrmeter.model.operation.RandomOperationExecutorThread.executeOperation(RandomOperationExecutorThread.java:83)
    at com.plugtree.solrmeter.model.operation.RandomOperationExecutorThread.run(RandomOperationExecutorThread.java:62)

Seems is not handling grouped responses correctly.

I did some small modifications to prevent such errors, see patch attached. Hope it helps!

Javier Mendez
diffSolrMeter.txt

Tomas Fernandez Lobbe

unread,
Oct 30, 2013, 11:45:15 PM10/30/13
to solr...@googlegroups.com
Hi Javier, thanks for the patch. Seems like the problem is the same one described in issue 113, correct? You also added a couple of unrelated changes in the patch, why did you need to change those, did you find another bug?


2013/10/30 Javier Méndez <luja...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "SolrMeter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solrmeter+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Javier Méndez

unread,
Oct 31, 2013, 11:56:03 AM10/31/13
to solr...@googlegroups.com
Yes, is the same issue described on 113. And the solution there actually makes more sense! Use the matched docs instead of counting the groups. To be honest I didn't spend too much time looking at existing issues.

The other problem I found was with the first exception in my original message. Class cast exception when reading cached data. For some reason hitratio and cumulative_hitratio are now floats, not Strings.

Thank you
Reply all
Reply to author
Forward
0 new messages