You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2009/02/06 10:39:59 UTC

[jira] Created: (SOLR-1010) Relative instanceDir is evaluated relative to current working directory

Relative instanceDir is evaluated relative to current working directory
-----------------------------------------------------------------------

                 Key: SOLR-1010
                 URL: https://issues.apache.org/jira/browse/SOLR-1010
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.3
            Reporter: Shalin Shekhar Mangar
            Priority: Minor
             Fix For: 1.4


If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.

I guess people work around this bug right now by using absolute paths for instanceDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1010) Relative instanceDir is evaluated relative to current working directory

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675671#action_12675671 ] 

Ryan McKinley commented on SOLR-1010:
-------------------------------------

Hymmm -- the semantics of this could be argued either way.

I can see arguments for both.

For sure we can not change the behavior within a 1.x release without a fair bit of consideration.  A naive approach will break any existing configs.

I think I would add this to the bucket of things that get fixed in 2.0 with a full re-vamp of how configuration/initialization happens.


> Relative instanceDir is evaluated relative to current working directory
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1010
>                 URL: https://issues.apache.org/jira/browse/SOLR-1010
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>
> If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.
> I guess people work around this bug right now by using absolute paths for instanceDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-1010) Relative instanceDir is evaluated relative to current working directory

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar resolved SOLR-1010.
-----------------------------------------

    Resolution: Invalid

> Relative instanceDir is evaluated relative to current working directory
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1010
>                 URL: https://issues.apache.org/jira/browse/SOLR-1010
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>
> If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.
> I guess people work around this bug right now by using absolute paths for instanceDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SOLR-1010) Relative instanceDir is evaluated relative to current working directory

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar reassigned SOLR-1010:
-------------------------------------------

    Assignee: Shalin Shekhar Mangar

> Relative instanceDir is evaluated relative to current working directory
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1010
>                 URL: https://issues.apache.org/jira/browse/SOLR-1010
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>
> If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.
> I guess people work around this bug right now by using absolute paths for instanceDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1010) Relative instanceDir is evaluated relative to current working directory

Posted by "Alexey Serba (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674221#action_12674221 ] 

Alexey Serba commented on SOLR-1010:
------------------------------------

{quote}
If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.
{quote}
This is the behavior I expected from solr multicore.
Added my vote.

> Relative instanceDir is evaluated relative to current working directory
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1010
>                 URL: https://issues.apache.org/jira/browse/SOLR-1010
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>
> If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.
> I guess people work around this bug right now by using absolute paths for instanceDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1010) Relative instanceDir is evaluated relative to current working directory

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675775#action_12675775 ] 

Shalin Shekhar Mangar commented on SOLR-1010:
---------------------------------------------

I must have been really confused when I opened this issue. Relative instanceDir is already handled relative to solr.home directory.

I'm really sorry for the confusion. We can close this issue.

> Relative instanceDir is evaluated relative to current working directory
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1010
>                 URL: https://issues.apache.org/jira/browse/SOLR-1010
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>
> If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.
> I guess people work around this bug right now by using absolute paths for instanceDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1010) Relative instanceDir is evaluated relative to current working directory

Posted by "Michael Della Bitta (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675714#action_12675714 ] 

Michael Della Bitta commented on SOLR-1010:
-------------------------------------------

I'm a little unclear on why it would ever make sense to base any sort of configuration path on where the container was invoked, because usage of a container implies there might be other colocated apps and resulting conflicts if other apps (which are likely Solr instances) worked in this way. 

But even more so when I've made an obvious effort to override this behavior by using something like JNDI. It seems to me that the type of user that's willing to do the configuration work to set JNDI properties is the type of user that wouldn't need to worry about the simplicity of having all paths work off the invocation directory, and the configured solr.home should be considered the new user.dir.

Maybe I'm missing the other argument because it doesn't apply to me somehow, though.

> Relative instanceDir is evaluated relative to current working directory
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1010
>                 URL: https://issues.apache.org/jira/browse/SOLR-1010
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>
> If a relative instanceDir is provided in solr.xml, it should be evaluated relative to solr.home instead of the current working directory.
> I guess people work around this bug right now by using absolute paths for instanceDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.