hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1307281 - in /hbase/branches/0.92: CHANGES.txt src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
Date Fri, 30 Mar 2012 05:59:47 GMT
Author: stack
Date: Fri Mar 30 05:59:47 2012
New Revision: 1307281

URL: http://svn.apache.org/viewvc?rev=1307281&view=rev
Log:
HBASE-5535 Make the functions in task monitor synchronized

Modified:
    hbase/branches/0.92/CHANGES.txt
    hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java

Modified: hbase/branches/0.92/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1307281&r1=1307280&r2=1307281&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Fri Mar 30 05:59:47 2012
@@ -24,6 +24,7 @@ Release 0.92.2 - Unreleased
                are overwritten by hbase-site.xml (Takuya Ueshin)
    HBASE-5673  The OOM problem of IPC client call cause all handle block
                (Xufeng)
+   HBASE-5535  Make the functions in task monitor synchronized (Liyin Tang)
 
   IMPROVEMENTS
    HBASE-5592  Make it easier to get a table from shell (Ben West)

Modified: hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java?rev=1307281&r1=1307280&r2=1307281&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
(original)
+++ hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
Fri Mar 30 05:59:47 2012
@@ -64,7 +64,7 @@ public class TaskMonitor {
     return instance;
   }
   
-  public MonitoredTask createStatus(String description) {
+  public synchronized MonitoredTask createStatus(String description) {
     MonitoredTask stat = new MonitoredTaskImpl();
     stat.setDescription(description);
     MonitoredTask proxy = (MonitoredTask) Proxy.newProxyInstance(
@@ -78,7 +78,7 @@ public class TaskMonitor {
     return proxy;
   }
 
-  public MonitoredRPCHandler createRPCStatus(String description) {
+  public synchronized MonitoredRPCHandler createRPCStatus(String description) {
     MonitoredRPCHandler stat = new MonitoredRPCHandlerImpl();
     stat.setDescription(description);
     MonitoredRPCHandler proxy = (MonitoredRPCHandler) Proxy.newProxyInstance(



Mime
View raw message