You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2009/12/30 19:47:30 UTC

[jira] Created: (HBASE-2079) CME in HBC#hashCode

CME in HBC#hashCode
-------------------

                 Key: HBASE-2079
                 URL: https://issues.apache.org/jira/browse/HBASE-2079
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: stack
             Fix For: 0.20.3


>From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.

{code}
On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:

Exception in thread "Thread-9" java.util.ConcurrentModificationException
   at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
   at java.util.AbstractList$Itr.next(AbstractList.java:343)
   at
org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
   at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
   at
org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
   at
org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
   at java.util.WeakHashMap.get(WeakHashMap.java:348)
   at
org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
   at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
   at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
   at InserterThread.run(hbase_client.java:53)
   at java.lang.Thread.run(Thread.java:619
{code}

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


[jira] Updated: (HBASE-2079) CME in HBC#hashCode

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

stack updated HBASE-2079:
-------------------------

    Status: Open  (was: Patch Available)

Patch won't work.

> CME in HBC#hashCode
> -------------------
>
>                 Key: HBASE-2079
>                 URL: https://issues.apache.org/jira/browse/HBASE-2079
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>         Attachments: 2079.patch
>
>
> From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.
> {code}
> On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:
> Exception in thread "Thread-9" java.util.ConcurrentModificationException
>    at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>    at java.util.AbstractList$Itr.next(AbstractList.java:343)
>    at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
>    at
> org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
>    at
> org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
>    at java.util.WeakHashMap.get(WeakHashMap.java:348)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
>    at InserterThread.run(hbase_client.java:53)
>    at java.lang.Thread.run(Thread.java:619
> {code}

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


[jira] Commented: (HBASE-2079) CME in HBC#hashCode

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795483#action_12795483 ] 

stack commented on HBASE-2079:
------------------------------

Well, thinking on it, my change will not work.  It just blocks threads on hashcode but issue is changes in backing Map while an iteration is going on.  Would need to synchronize all puts to HBC since the Configuration backing Properties is not accessible.

I'm going to cancel patch and move this out of 0.20.3.  Its rare and the workaround is to set all configuration before starting up threads.

> CME in HBC#hashCode
> -------------------
>
>                 Key: HBASE-2079
>                 URL: https://issues.apache.org/jira/browse/HBASE-2079
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>         Attachments: 2079.patch
>
>
> From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.
> {code}
> On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:
> Exception in thread "Thread-9" java.util.ConcurrentModificationException
>    at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>    at java.util.AbstractList$Itr.next(AbstractList.java:343)
>    at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
>    at
> org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
>    at
> org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
>    at java.util.WeakHashMap.get(WeakHashMap.java:348)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
>    at InserterThread.run(hbase_client.java:53)
>    at java.lang.Thread.run(Thread.java:619
> {code}

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


[jira] Updated: (HBASE-2079) CME in HBC#hashCode

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

stack updated HBASE-2079:
-------------------------

    Status: Patch Available  (was: Open)

> CME in HBC#hashCode
> -------------------
>
>                 Key: HBASE-2079
>                 URL: https://issues.apache.org/jira/browse/HBASE-2079
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.20.3
>
>         Attachments: 2079.patch
>
>
> From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.
> {code}
> On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:
> Exception in thread "Thread-9" java.util.ConcurrentModificationException
>    at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>    at java.util.AbstractList$Itr.next(AbstractList.java:343)
>    at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
>    at
> org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
>    at
> org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
>    at java.util.WeakHashMap.get(WeakHashMap.java:348)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
>    at InserterThread.run(hbase_client.java:53)
>    at java.lang.Thread.run(Thread.java:619
> {code}

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


[jira] Commented: (HBASE-2079) CME in HBC#hashCode

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795480#action_12795480 ] 

Jean-Daniel Cryans commented on HBASE-2079:
-------------------------------------------

+1

> CME in HBC#hashCode
> -------------------
>
>                 Key: HBASE-2079
>                 URL: https://issues.apache.org/jira/browse/HBASE-2079
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.20.3
>
>         Attachments: 2079.patch
>
>
> From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.
> {code}
> On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:
> Exception in thread "Thread-9" java.util.ConcurrentModificationException
>    at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>    at java.util.AbstractList$Itr.next(AbstractList.java:343)
>    at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
>    at
> org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
>    at
> org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
>    at java.util.WeakHashMap.get(WeakHashMap.java:348)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
>    at InserterThread.run(hbase_client.java:53)
>    at java.lang.Thread.run(Thread.java:619
> {code}

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


[jira] Updated: (HBASE-2079) CME in HBC#hashCode

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

stack updated HBASE-2079:
-------------------------

    Attachment:     (was: 2079.patch)

> CME in HBC#hashCode
> -------------------
>
>                 Key: HBASE-2079
>                 URL: https://issues.apache.org/jira/browse/HBASE-2079
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>
> From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.
> {code}
> On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:
> Exception in thread "Thread-9" java.util.ConcurrentModificationException
>    at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>    at java.util.AbstractList$Itr.next(AbstractList.java:343)
>    at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
>    at
> org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
>    at
> org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
>    at java.util.WeakHashMap.get(WeakHashMap.java:348)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
>    at InserterThread.run(hbase_client.java:53)
>    at java.lang.Thread.run(Thread.java:619
> {code}

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


[jira] Updated: (HBASE-2079) CME in HBC#hashCode

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

stack updated HBASE-2079:
-------------------------

    Fix Version/s:     (was: 0.20.3)

> CME in HBC#hashCode
> -------------------
>
>                 Key: HBASE-2079
>                 URL: https://issues.apache.org/jira/browse/HBASE-2079
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>         Attachments: 2079.patch
>
>
> From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.
> {code}
> On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:
> Exception in thread "Thread-9" java.util.ConcurrentModificationException
>    at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>    at java.util.AbstractList$Itr.next(AbstractList.java:343)
>    at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
>    at
> org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
>    at
> org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
>    at java.util.WeakHashMap.get(WeakHashMap.java:348)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
>    at InserterThread.run(hbase_client.java:53)
>    at java.lang.Thread.run(Thread.java:619
> {code}

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


[jira] Updated: (HBASE-2079) CME in HBC#hashCode

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

stack updated HBASE-2079:
-------------------------

    Attachment: 2079.patch

Added synchronization of HBC#hashCode

> CME in HBC#hashCode
> -------------------
>
>                 Key: HBASE-2079
>                 URL: https://issues.apache.org/jira/browse/HBASE-2079
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.20.3
>
>         Attachments: 2079.patch
>
>
> From hbase-user.  I'm putting it into 0.20.3   Shows when multiple concurrent threads.
> {code}
> On Wed, Dec 30, 2009 at 5:59 AM, Dmitriy Lyfar <dl...@gmail.com> wrote:
> Exception in thread "Thread-9" java.util.ConcurrentModificationException
>    at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
>    at java.util.AbstractList$Itr.next(AbstractList.java:343)
>    at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
>    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
>    at
> org.apache.hadoop.conf.Configuration.iterator(Configuration.java:1015)
>    at
> org.apache.hadoop.hbase.HBaseConfiguration.hashCode(HBaseConfiguration.java:63)
>    at java.util.WeakHashMap.get(WeakHashMap.java:348)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:97)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:105)
>    at InserterThread.run(hbase_client.java:53)
>    at java.lang.Thread.run(Thread.java:619
> {code}

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