hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Kellerman (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1341) TestHBaseCluster fails with IllegalMonitorStateException
Date Thu, 10 May 2007 19:32:15 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494821
] 

Jim Kellerman commented on HADOOP-1341:
---------------------------------------

That was helpful, thanks!

I now know what is causing the problem: trying to hold a lock across multiple RPC's. You can't
be guaranteed that the same proxy that took out the lock is the one that is invoked when trying
to unlock the lock.

This is going to require some restructuring of how we do locking. Hopefully I can figure out
something in a couple of days.

> TestHBaseCluster fails with IllegalMonitorStateException
> --------------------------------------------------------
>
>                 Key: HADOOP-1341
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1341
>             Project: Hadoop
>          Issue Type: Bug
>          Components: contrib/hbase
>    Affects Versions: 0.12.3
>         Environment: redhat
>            Reporter: Hairong Kuang
>         Assigned To: Jim Kellerman
>             Fix For: 0.13.0
>
>         Attachments: hbase.log
>
>
> TestHBaseCluster fails because of the following exceptions:
>     [junit] 07/05/08 16:31:58 INFO ipc.Server: IPC Server handler 3 on 42335, call next(3659548438240671209,
--META--__1//1178667102672) from 127.0.0.1:42391: error: java.io.IOException: java.lang.IllegalMonitorStateException
>     [junit] java.io.IOException: java.lang.IllegalMonitorStateException
>     [junit]     at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:363)
>     [junit]     at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1218)
>     [junit]     at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:745)
>     [junit]     at org.apache.hadoop.hbase.HStore$HStoreScanner.close(HStore.java:1059)
>     [junit]     at org.apache.hadoop.hbase.HRegion$HScanner.closeScanner(HRegion.java:1302)
>     [junit]     at org.apache.hadoop.hbase.HRegion$HScanner.next(HRegion.java:1279)
>     [junit]     at org.apache.hadoop.hbase.HRegionServer.next(HRegionServer.java:1076)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
>     [junit]     at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:341)
>     [junit]     at org.apache.hadoop.ipc.Server$Handler.run(Server.java:573)
>     [junit] org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.IllegalMonitorStateException
>     [junit]     at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:363)
>     [junit]     at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1218)
>     [junit]     at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:745)
>     [junit]     at org.apache.hadoop.hbase.HStore$HStoreScanner.close(HStore.java:1059)
>     [junit]     at org.apache.hadoop.hbase.HRegion$HScanner.closeScanner(HRegion.java:1302)
>     [junit]     at org.apache.hadoop.hbase.HRegion$HScanner.next(HRegion.java:1279)
>     [junit]     at org.apache.hadoop.hbase.HRegionServer.next(HRegionServer.java:1076)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
>     [junit]     at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:341)
>     [junit]     at org.apache.hadoop.ipc.Server$Handler.run(Server.java:573)
>     [junit]     at org.apache.hadoop.ipc.Client.call(Client.java:471)
>     [junit]     at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:165)
>     [junit]     at $Proxy8.next(Unknown Source)
>     [junit]     at org.apache.hadoop.hbase.HMaster$BaseScanner.scanRegion(HMaster.java:154)
>     [junit]     at org.apache.hadoop.hbase.HMaster$RootScanner.run(HMaster.java:267)
>     [junit]     at java.lang.Thread.run(Thread.java:619)
>     [junit] 07/05/08 16:32:13 INFO ipc.Server: IPC Server handler 7 on 42333, call createTable(name:
test, maxVersions: 3, families: [anchor:, contents:]) from 127.0.0.1:42400: error: java.io.IOException:
java.lang.IllegalStateException: Master not running
>     [junit] java.io.IOException: java.lang.IllegalStateException: Master not running
>     [junit]     at org.apache.hadoop.hbase.HMaster.createTable(HMaster.java:1316)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
>     [junit]     at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:341)
>     [junit]     at org.apache.hadoop.ipc.Server$Handler.run(Server.java:573)

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


Mime
View raw message