You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Unico Hommes (Created) (JIRA)" <ji...@apache.org> on 2012/03/09 12:23:11 UTC

[jira] [Created] (JCR-3255) Access cluster node id

Access cluster node id
----------------------

                 Key: JCR-3255
                 URL: https://issues.apache.org/jira/browse/JCR-3255
             Project: Jackrabbit Content Repository
          Issue Type: New Feature
            Reporter: Unico Hommes
            Priority: Minor
             Fix For: 2.2.12
         Attachments: RepositoryConfigurationParser.patch

I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()

I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Updated] (JCR-3255) Access cluster node id

Posted by "Bart van der Schans (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bart van der Schans updated JCR-3255:
-------------------------------------

    Fix Version/s: 2.6
                   2.4.1
    
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Assignee: Bart van der Schans
>            Priority: Minor
>             Fix For: 2.2.12, 2.4.1, 2.6
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Assigned] (JCR-3255) Access cluster node id

Posted by "Bart van der Schans (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bart van der Schans reassigned JCR-3255:
----------------------------------------

    Assignee: Bart van der Schans
    
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Assignee: Bart van der Schans
>            Priority: Minor
>             Fix For: 2.2.12, 2.4.1, 2.6
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Commented] (JCR-3255) Access cluster node id

Posted by "Bart van der Schans (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230246#comment-13230246 ] 

Bart van der Schans commented on JCR-3255:
------------------------------------------

Any objections to committing this also to the 2.4 and 2.2 branches?
                
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Priority: Minor
>             Fix For: 2.2.12
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Commented] (JCR-3255) Access cluster node id

Posted by "Bart van der Schans (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232525#comment-13232525 ] 

Bart van der Schans commented on JCR-3255:
------------------------------------------

That is exactly the reason why I asked :-) Thx. Backported to 2.4 and 2.2.
                
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Assignee: Bart van der Schans
>            Priority: Minor
>             Fix For: 2.2.12, 2.4.1, 2.6
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Commented] (JCR-3255) Access cluster node id

Posted by "Alex Parvulescu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226091#comment-13226091 ] 

Alex Parvulescu commented on JCR-3255:
--------------------------------------

>  two JR instances in one JVM
I can see one problem where you start 2 nodes one after the other, the first one generates an id and sets the system property, then the second one will use the already set property as the id.
This will break the scenario where you start 2 nodes just to run a simple test on you local machine, and it can probably affect unit testing / integration testing as well.

If this is only about convenience, probably adding a method to JctUtils would be the easiest.
                
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Priority: Minor
>             Fix For: 2.2.12
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Commented] (JCR-3255) Access cluster node id

Posted by "Bart van der Schans (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229189#comment-13229189 ] 

Bart van der Schans commented on JCR-3255:
------------------------------------------

I like the descriptor idea. I'll try to find some time to create a patch,
                
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Priority: Minor
>             Fix For: 2.2.12
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Updated] (JCR-3255) Access cluster node id

Posted by "Unico Hommes (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Unico Hommes updated JCR-3255:
------------------------------

    Attachment: RepositoryConfigurationParser.patch
    
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Priority: Minor
>             Fix For: 2.2.12
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Commented] (JCR-3255) Access cluster node id

Posted by "Jukka Zitting (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230580#comment-13230580 ] 

Jukka Zitting commented on JCR-3255:
------------------------------------

The descriptor, not the system property? No objections here.

We normally avoid backporting any non-bugfix changes to maintenance branches to reduce the chance of unexpected breakage (and to avoid compatibility issues between two patch releases from the same branch), but the potential impact of a change like this is so minimal that if you find this feature useful then I'm fine with backporting it to 2.4 and 2.2.
                
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Priority: Minor
>             Fix For: 2.2.12
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Resolved] (JCR-3255) Access cluster node id

Posted by "Bart van der Schans (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bart van der Schans resolved JCR-3255.
--------------------------------------

    Resolution: Fixed
    
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Assignee: Bart van der Schans
>            Priority: Minor
>             Fix For: 2.2.12, 2.4.1, 2.6
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Commented] (JCR-3255) Access cluster node id

Posted by "Jukka Zitting (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226095#comment-13226095 ] 

Jukka Zitting commented on JCR-3255:
------------------------------------

In CRX we expose the cluster node id through an extra "crx.cluster.id" repository descriptor. I think Jackrabbit could well do something similar.
                
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Priority: Minor
>             Fix For: 2.2.12
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Updated] (JCR-3255) Access cluster node id

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

Jukka Zitting updated JCR-3255:
-------------------------------

    Fix Version/s:     (was: 2.6)
                   2.5
    
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Assignee: Bart van der Schans
>            Priority: Minor
>             Fix For: 2.2.12, 2.4.1, 2.5
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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

        

[jira] [Commented] (JCR-3255) Access cluster node id

Posted by "Bart van der Schans (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226025#comment-13226025 ] 

Bart van der Schans commented on JCR-3255:
------------------------------------------

The only problem I can think of is when running two JR instances in one JVM. If that is a concern we could add a method (in the JR api?) to fetch the id. Is this a real concern or can I go ahead and apply the patch?

                
> Access cluster node id
> ----------------------
>
>                 Key: JCR-3255
>                 URL: https://issues.apache.org/jira/browse/JCR-3255
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>            Reporter: Unico Hommes
>            Priority: Minor
>             Fix For: 2.2.12
>
>         Attachments: RepositoryConfigurationParser.patch
>
>
> I need to know the cluster node id in my application. I didn't find any other way than to cast to org.apache.jackrabbit.core.RepositoryImpl : ((RepositoryImpl) session.getRepository()).getConfig().getClusterConfig().getId()
> I would appreciate it if I could get to this using the system property ClusterNode.SYSTEM_PROPERTY_NODE_ID.

--
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