[jira] Created: (SOLR-753) CoreDescriptor holds wrong instance dir for single core

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

[jira] Created: (SOLR-753) CoreDescriptor holds wrong instance dir for single core

Nick Burch (Jira)
CoreDescriptor holds wrong instance dir for single core
-------------------------------------------------------

                 Key: SOLR-753
                 URL: https://issues.apache.org/jira/browse/SOLR-753
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.3
            Reporter: Noble Paul


for single core ,the  CoreDescriptor is instantiated with the following code
{code:java}
CoreDescriptor dcore = new CoreDescriptor(cores, "", cfg.getResourceLoader().getInstanceDir());
{code}
and the reload in CoreContainer#create(CoreDescriptor dcore) has a snippet as follows

{code:java}
File idir = new File(loader.getInstanceDir(), dcore.getInstanceDir());
{code}

which will make the idir value something like "solr/solr/" which is wrong





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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-753) CoreDescriptor holds wrong instance dir for single core

Nick Burch (Jira)

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

Noble Paul updated SOLR-753:
----------------------------

    Attachment: SOLR-753.patch

the fix

> CoreDescriptor holds wrong instance dir for single core
> -------------------------------------------------------
>
>                 Key: SOLR-753
>                 URL: https://issues.apache.org/jira/browse/SOLR-753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>         Attachments: SOLR-753.patch
>
>
> for single core ,the  CoreDescriptor is instantiated with the following code
> {code:java}
> CoreDescriptor dcore = new CoreDescriptor(cores, "", cfg.getResourceLoader().getInstanceDir());
> {code}
> and the reload in CoreContainer#create(CoreDescriptor dcore) has a snippet as follows
> {code:java}
> File idir = new File(loader.getInstanceDir(), dcore.getInstanceDir());
> {code}
> which will make the idir value something like "solr/solr/" which is wrong

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-753) CoreDescriptor holds wrong instance dir for single core

Nick Burch (Jira)
In reply to this post by Nick Burch (Jira)

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

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

Should we mark this bug for 1.3 ?

This bug does not let us create or reload a core when the user started with a single core deployment (i.e. no solr.xml).

> CoreDescriptor holds wrong instance dir for single core
> -------------------------------------------------------
>
>                 Key: SOLR-753
>                 URL: https://issues.apache.org/jira/browse/SOLR-753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>         Attachments: SOLR-753.patch
>
>
> for single core ,the  CoreDescriptor is instantiated with the following code
> {code:java}
> CoreDescriptor dcore = new CoreDescriptor(cores, "", cfg.getResourceLoader().getInstanceDir());
> {code}
> and the reload in CoreContainer#create(CoreDescriptor dcore) has a snippet as follows
> {code:java}
> File idir = new File(loader.getInstanceDir(), dcore.getInstanceDir());
> {code}
> which will make the idir value something like "solr/solr/" which is wrong

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-753) CoreDescriptor holds wrong instance dir for single core

Nick Burch (Jira)
In reply to this post by Nick Burch (Jira)

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

Yonik Seeley commented on SOLR-753:
-----------------------------------

Yes, I think this should be in 1.3

> CoreDescriptor holds wrong instance dir for single core
> -------------------------------------------------------
>
>                 Key: SOLR-753
>                 URL: https://issues.apache.org/jira/browse/SOLR-753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>         Attachments: SOLR-753.patch
>
>
> for single core ,the  CoreDescriptor is instantiated with the following code
> {code:java}
> CoreDescriptor dcore = new CoreDescriptor(cores, "", cfg.getResourceLoader().getInstanceDir());
> {code}
> and the reload in CoreContainer#create(CoreDescriptor dcore) has a snippet as follows
> {code:java}
> File idir = new File(loader.getInstanceDir(), dcore.getInstanceDir());
> {code}
> which will make the idir value something like "solr/solr/" which is wrong

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-753) CoreDescriptor holds wrong instance dir for single core

Nick Burch (Jira)
In reply to this post by Nick Burch (Jira)

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

Shalin Shekhar Mangar updated SOLR-753:
---------------------------------------

    Fix Version/s: 1.3

> CoreDescriptor holds wrong instance dir for single core
> -------------------------------------------------------
>
>                 Key: SOLR-753
>                 URL: https://issues.apache.org/jira/browse/SOLR-753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.3
>
>         Attachments: SOLR-753.patch
>
>
> for single core ,the  CoreDescriptor is instantiated with the following code
> {code:java}
> CoreDescriptor dcore = new CoreDescriptor(cores, "", cfg.getResourceLoader().getInstanceDir());
> {code}
> and the reload in CoreContainer#create(CoreDescriptor dcore) has a snippet as follows
> {code:java}
> File idir = new File(loader.getInstanceDir(), dcore.getInstanceDir());
> {code}
> which will make the idir value something like "solr/solr/" which is wrong

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (SOLR-753) CoreDescriptor holds wrong instance dir for single core

Nick Burch (Jira)
In reply to this post by Nick Burch (Jira)

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

Yonik Seeley resolved SOLR-753.
-------------------------------

    Resolution: Fixed

Committed. Thanks!

> CoreDescriptor holds wrong instance dir for single core
> -------------------------------------------------------
>
>                 Key: SOLR-753
>                 URL: https://issues.apache.org/jira/browse/SOLR-753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Noble Paul
>             Fix For: 1.3
>
>         Attachments: SOLR-753.patch
>
>
> for single core ,the  CoreDescriptor is instantiated with the following code
> {code:java}
> CoreDescriptor dcore = new CoreDescriptor(cores, "", cfg.getResourceLoader().getInstanceDir());
> {code}
> and the reload in CoreContainer#create(CoreDescriptor dcore) has a snippet as follows
> {code:java}
> File idir = new File(loader.getInstanceDir(), dcore.getInstanceDir());
> {code}
> which will make the idir value something like "solr/solr/" which is wrong

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