You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Po Rui (JIRA)" <ji...@apache.org> on 2012/11/21 07:09:58 UTC

[jira] [Created] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

Po Rui created SOLR-4098:
----------------------------

             Summary: Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
                 Key: SOLR-4098
                 URL: https://issues.apache.org/jira/browse/SOLR-4098
             Project: Solr
          Issue Type: Bug
          Components: multicore
    Affects Versions: 4.0, 4.0-BETA, 4.0-ALPHA
            Reporter: Po Rui
            Priority: Critical
             Fix For: 4.0, 4.0-BETA, 4.0-ALPHA


a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
e.g.
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
or append whatever uncrect param like:
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

here, checkDefault() should throw exception rather than assign a name quietly

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Mark Miller updated SOLR-4098:
------------------------------

         Priority: Major  (was: Critical)
    Fix Version/s:     (was: 4.0)
                       (was: 4.0-BETA)
                       (was: 4.0-ALPHA)
                   5.0
                   4.1
    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Assignee: Mark Miller
>             Fix For: 4.1, 5.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly
> I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those invoker should be double check in next version  

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Po Rui updated SOLR-4098:
-------------------------

    Attachment:     (was: SOLR-4098.patch)
    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Priority: Critical
>             Fix For: 4.0-ALPHA, 4.0-BETA, 4.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Po Rui updated SOLR-4098:
-------------------------

    Attachment: SOLR-4098.patch
    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Priority: Critical
>             Fix For: 4.0-ALPHA, 4.0-BETA, 4.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Po Rui updated SOLR-4098:
-------------------------

    Description: 
a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
e.g.
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
or append whatever uncrect param like:
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

here, checkDefault() should throw exception rather than assign a name quietly

I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those should be double check in next  

  was:
a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
e.g.
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
or append whatever uncrect param like:
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

here, checkDefault() should throw exception rather than assign a name quietly

I'd fixed rename/remove/reload/swap. but getCore(name) be refer by too many methods

    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Priority: Critical
>             Fix For: 4.0-ALPHA, 4.0-BETA, 4.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly
> I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those should be double check in next  

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Assigned] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Mark Miller reassigned SOLR-4098:
---------------------------------

    Assignee: Mark Miller
    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Assignee: Mark Miller
>            Priority: Critical
>             Fix For: 4.1, 5.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly
> I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those invoker should be double check in next version  

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Po Rui updated SOLR-4098:
-------------------------

    Description: 
a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
e.g.
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
or append whatever uncrect param like:
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

here, checkDefault() should throw exception rather than assign a name quietly

I'd fixed rename/remove/reload/swap. but getCore(name) be refer by too many methods

  was:
a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
e.g.
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
or append whatever uncrect param like:
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

here, checkDefault() should throw exception rather than assign a name quietly

    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Priority: Critical
>             Fix For: 4.0-ALPHA, 4.0-BETA, 4.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly
> I'd fixed rename/remove/reload/swap. but getCore(name) be refer by too many methods

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Po Rui updated SOLR-4098:
-------------------------

    Description: 
a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
e.g.
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
or append whatever uncrect param like:
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

here, checkDefault() should throw exception rather than assign a name quietly

I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those invoker should be double check in next version  

  was:
a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
e.g.
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
or append whatever uncrect param like:
http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop

those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation

here, checkDefault() should throw exception rather than assign a name quietly

I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those should be double check in next  

    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Priority: Critical
>             Fix For: 4.0-ALPHA, 4.0-BETA, 4.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly
> I'd fixed rename/remove/reload/swap. but getCore(name) be invoked by too many methods. I'm not sure weather this also lead some potential issue now. I'd rather believe it does. those invoker should be double check in next version  

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-4098) Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly

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

Po Rui updated SOLR-4098:
-------------------------

    Attachment: SOLR-4098.patch
    
> Unacceptable Corecontainer logic.lead delete/rename/swap a core quietly
> -----------------------------------------------------------------------
>
>                 Key: SOLR-4098
>                 URL: https://issues.apache.org/jira/browse/SOLR-4098
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>            Reporter: Po Rui
>            Priority: Critical
>             Fix For: 4.0-ALPHA, 4.0-BETA, 4.0
>
>         Attachments: SOLR-4098.patch
>
>
> a bad logic in CoreContainer. it will assign a default name using checkDefault(name) while the core name is not specified.
> e.g.
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD
> or append whatever uncrect param like:
> http://127.0.0.1:8983/solr/admin/cores?action=UNLOAD&appname=wop
> those request both unload the core "collection1"(cause the default core name is "collection1" in solr)
> this bad behavior appear on "reload"/"swap"/"rename"/"remove" and "getCore(String)" operation
> here, checkDefault() should throw exception rather than assign a name quietly

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org