[jira] [Created] (SOLR-3665) CoreAdminHandler STATUS command fails when using RAMDirectoryFactory

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (SOLR-3665) CoreAdminHandler STATUS command fails when using RAMDirectoryFactory

JIRA jira@apache.org
Hoss Man created SOLR-3665:
------------------------------

             Summary: CoreAdminHandler STATUS command fails when using RAMDirectoryFactory
                 Key: SOLR-3665
                 URL: https://issues.apache.org/jira/browse/SOLR-3665
             Project: Solr
          Issue Type: Bug
            Reporter: Hoss Man


working on SOLR-3634 i've run into a hicup testing that CoreAdminHandler STATUS actions work properly because it tries to get the size of a directory that doesn't actually exist because of RAMDirectoryFactory.


--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (SOLR-3665) CoreAdminHandler STATUS command fails when using RAMDirectoryFactory

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-3665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421054#comment-13421054 ]

Hoss Man commented on SOLR-3665:
--------------------------------

Root exception that pops up is...

{noformat}
[junit4:junit4]    > Caused by: java.lang.IllegalArgumentException: /home/hossman/lucene/dev/solr/build/solr-core/test/J0/./solrtest-CoreAdminHandlerTest-1343089260495/index does not exist
[junit4:junit4]    > at org.apache.commons.io.FileUtils.sizeOfDirectory(FileUtils.java:2074)
[junit4:junit4]    > at org.apache.solr.handler.admin.CoreAdminHandler.getIndexSize(CoreAdminHandler.java:864)
[junit4:junit4]    > at org.apache.solr.handler.admin.CoreAdminHandler.getCoreStatus(CoreAdminHandler.java:849)
[junit4:junit4]    > at org.apache.solr.handler.admin.CoreAdminHandler.handleStatusAction(CoreAdminHandler.java:576)
[junit4:junit4]    > ... 41 more
{noformat}

...we could conceivably make CoreAdminHandler work around this type of situation by having CoreAdminHandler.getIndexSize return null in the case that the directory doesn't exist, but perhaps it would be better to enhance Directory (or DirectoryFactory) to return this type of information and delegate to that.
               

> CoreAdminHandler STATUS command fails when using RAMDirectoryFactory
> --------------------------------------------------------------------
>
>                 Key: SOLR-3665
>                 URL: https://issues.apache.org/jira/browse/SOLR-3665
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>
> working on SOLR-3634 i've run into a hicup testing that CoreAdminHandler STATUS actions work properly because it tries to get the size of a directory that doesn't actually exist because of RAMDirectoryFactory.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (SOLR-3665) CoreAdminHandler STATUS command fails when using RAMDirectoryFactory

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SOLR-3665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-3665:
---------------------------

    Attachment: SOLR-3665-test.patch

trivial test patch demonstrating the problem
               

> CoreAdminHandler STATUS command fails when using RAMDirectoryFactory
> --------------------------------------------------------------------
>
>                 Key: SOLR-3665
>                 URL: https://issues.apache.org/jira/browse/SOLR-3665
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>         Attachments: SOLR-3665-test.patch
>
>
> working on SOLR-3634 i've run into a hicup testing that CoreAdminHandler STATUS actions work properly because it tries to get the size of a directory that doesn't actually exist because of RAMDirectoryFactory.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]