[
https://issues.apache.org/jira/browse/SOLR-4135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508029#comment-13508029
]
Shawn Heisey commented on SOLR-4135:
------------------------------------
Looking through historical logs that don't really go back very far, it appears
that all of the exceptions I have seen are for segments_nn, *.id, and *.del
files. I can't guarantee that it doesn't happen with actual segment files, but
none have appeared in the logs that I have examined.
Thoughts:
1) Is the exception being logged twice because of logging duplicates (nested
catch statements?), or is it because the size calculation is being done twice?
I have not looked at the code, but I would guess it's more likely to be the
former.
2) Does this mean some synchronization is required to prevent the index from
being updated while stats are being gathered? That seems like a possible
performance killer, so is there a better solution?
3) SOLR-3990.
> java.lang.IllegalArgumentException when getting index size in replication
> handler
> ---------------------------------------------------------------------------------
>
> Key: SOLR-4135
> URL: https://issues.apache.org/jira/browse/SOLR-4135
> Project: Solr
> Issue Type: Bug
> Components: replication (java)
> Affects Versions: 4.1
> Environment: Linux bigindy5 2.6.32-279.14.1.el6.centos.plus.x86_64 #1
> SMP Wed Nov 7 00:40:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.7.0_09"
> Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
> solr-impl 4.1-SNAPSHOT 1415856M - ncindex - 2012-11-30 14:42:27
> Reporter: Shawn Heisey
> Fix For: 4.1, 5.0
>
>
> Very similar to SOLR-4117, but happens even with branch_4x checkouts after
> that patch was committed. I am not actually doing replication. This
> exception happens on some calls to /admin/mbeans?stats=true that are made by
> a SolrJ application.
> ERROR - 2012-11-30 17:31:00.592; org.apache.solr.common.SolrException;
> java.lang.IllegalArgumentException:
> /index/solr4/cores/s5_0/../../data/s5_0/index/segments_9k does not exist
> at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2053)
> at
> org.apache.commons.io.FileUtils.sizeOfDirectory(FileUtils.java:2089)
> at
> org.apache.solr.handler.ReplicationHandler.getIndexSize(ReplicationHandler.java:477)
--
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]