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

Qiang Tian resolved HBASE-11146.
--------------------------------

    Resolution: Won't Fix

work as design

> HMaster instantiates both MasterCoprocessorHost and 
> RegionServerCoprocessorHost
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-11146
>                 URL: https://issues.apache.org/jira/browse/HBASE-11146
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>    Affects Versions: 0.99.0
>            Reporter: Qiang Tian
>            Assignee: Qiang Tian
>
> See HBASE-11096.
> in 0.99, HRegionServer is the base class of HMaster. 
> master and regionserver share the same run method, the master instantiates 
> both MasterCoprocessorHost and RegionServerCoprocessorHost
> below is example logs, a coprocessor is start/stop twice--one is for real 
> regionserver, the other is for the RegionServerCoprocessorHost in master.
> 2014-05-08 00:33:51,632 INFO [M:0;bdvm135:36021] 
> coprocessor.TestCoprocessorStop$FooCoprocessor(66): st
> art coprocessor on regionserver
> 2014-05-08 00:33:51,633 INFO [RS:0;bdvm135:47513] 
> coprocessor.TestCoprocessorStop$FooCoprocessor(66): s
> tart coprocessor on regionserver
> ...
> 2014-05-08 00:34:03,166 INFO [main] regionserver.HRegionServer(1624): call 
> stack of stop
> java.io.IOException
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.stop(HRegionServer.java:1624)
> at 
> org.apache.hadoop.hbase.master.ServerManager.shutdownCluster(ServerManager.java:975)
> at org.apache.hadoop.hbase.master.HMaster.shutdown(HMaster.java:1623)
> at 
> org.apache.hadoop.hbase.util.JVMClusterUtil.shutdown(JVMClusterUtil.java:256)
> at 
> org.apache.hadoop.hbase.LocalHBaseCluster.shutdown(LocalHBaseCluster.java:437)
> at 
> org.apache.hadoop.hbase.MiniHBaseCluster.shutdown(MiniHBaseCluster.java:519)
> at 
> org.apache.hadoop.hbase.coprocessor.TestCoprocessorStop.testStopped(TestCoprocessorStop.java:
> 114)
> ...
> 2014-05-08 00:34:03,215 INFO [main] regionserver.HRegionServer(1629): rsHost 
> code path called
> 2014-05-08 00:34:03,228 DEBUG [main] coprocessor.CoprocessorHost(258): Stop 
> coprocessor org.apache.hadoo
> p.hbase.coprocessor.TestCoprocessorStop$FooCoprocessor
> 2014-05-08 00:34:03,462 INFO [main] 
> coprocessor.TestCoprocessorStop$FooCoprocessor(88): create file hdf
> s://localhost:8155/user/tianq/test-data/f0c9423c-e505-4feb-907e-c7bd6e16545b/regionserver1399534399680
>  r
> eturn rc true
> ...
> 2014-05-08 00:34:03,482 INFO [main] regionserver.HRegionServer(1624): call 
> stack of stop
> java.io.IOException
> at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.stop(HRegionServer.java:1624)
> at 
> org.apache.hadoop.hbase.util.JVMClusterUtil.shutdown(JVMClusterUtil.java:264)
> at 
> org.apache.hadoop.hbase.LocalHBaseCluster.shutdown(LocalHBaseCluster.java:437)
> at 
> org.apache.hadoop.hbase.MiniHBaseCluster.shutdown(MiniHBaseCluster.java:519)
> at 
> org.apache.hadoop.hbase.coprocessor.TestCoprocessorStop.testStopped(TestCoprocessorStop.java:
> 114)
> 2014-05-08 00:34:03,485 INFO [main] regionserver.HRegionServer(1629): rsHost 
> code path called
> 2014-05-08 00:34:03,485 DEBUG [main] coprocessor.CoprocessorHost(258): Stop 
> coprocessor org.apache.hadoo
> p.hbase.coprocessor.TestCoprocessorStop$FooCoprocessor
> 2014-05-08 00:34:03,493 INFO [main] 
> coprocessor.TestCoprocessorStop$FooCoprocessor(88): create file hdf
> s://localhost:8155/user/tianq/test-data/f0c9423c-e505-4feb-907e-c7bd6e16545b/regionserver1399534399680
>  r
> eturn rc false



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to