
jira at apache
May 11, 2012, 3:53 AM
Post #1 of 1
(51 views)
Permalink
|
|
[jira] [Issue Comment Edited] (SOLR-3450) CoreAdminHandler.handleStatusAction
|
|
[ https://issues.apache.org/jira/browse/SOLR-3450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273166#comment-13273166 ] Per Steffensen edited comment on SOLR-3450 at 5/11/12 10:53 AM: ---------------------------------------------------------------- Guess is that FileUtils.sizeOfDirectory starts by listing all files in the directory and afterwards works through that list getting the size of each file and adding it to a total sum. If a file disappears from the time the directory is listed and the time where the algorithm tries to find its size, you will end up like this. A file might disappear during index merge. Only guessing. Might want to be a little more robuste here. Regards, Per Steffensen was (Author: steff1193): Guess is that FileUtils.sizeOfDirectory starts by listing all files in the directory and afterwards works through that list getting the size of each file and adding it to a total sum. If a file disappears from the time the directory is listed and the time where the algorithm tries to find its size, you will end up like this. A file might disappear during index merge. Only guessing. Regards, Per Steffensen > CoreAdminHandler.handleStatusAction > ----------------------------------- > > Key: SOLR-3450 > URL: https://issues.apache.org/jira/browse/SOLR-3450 > Project: Solr > Issue Type: Bug > Components: SolrCloud > Affects Versions: 4.0 > Environment: Linux version 2.6.32-29-server (buildd [at] allspic) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #58-Ubuntu SMP Fri Feb 11 21:06:51 UTC 2011 > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > Reporter: Trym Møller > Priority: Minor > > May 8, 2012 12:49:49 PM org.apache.solr.common.SolrException log > SEVERE: org.apache.solr.common.SolrException: Error handling 'status' action > at org.apache.solr.handler.admin.CoreAdminHandler.handleStatusAction(CoreAdminHandler.java:551) > at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:161) > at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) > at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:360) > at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:173) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) > at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) > Caused by: java.lang.IllegalArgumentException: /usr/lib/solr-4.0/example/dataDir/index.20120419210203/_kvon_0.frq 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.admin.CoreAdminHandler.getIndexSize(CoreAdminHandler.java:837) > at org.apache.solr.handler.admin.CoreAdminHandler.getCoreStatus(CoreAdminHandler.java:822) > at org.apache.solr.handler.admin.CoreAdminHandler.handleStatusAction(CoreAdminHandler.java:542) > ... 21 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe [at] lucene For additional commands, e-mail: dev-help [at] lucene
|