hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inigo...@apache.org
Subject [13/50] [abbrv] hadoop git commit: HADOOP-14354. SysInfoWindows is not thread safe. Contributed by Inigo Goiri
Date Tue, 02 May 2017 22:05:30 GMT
HADOOP-14354. SysInfoWindows is not thread safe. Contributed by Inigo Goiri


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/689fb2fc
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/689fb2fc
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/689fb2fc

Branch: refs/heads/HDFS-10467
Commit: 689fb2fc661f233367ecbfa26795ff4c01408f3e
Parents: 31cf480
Author: Chris Douglas <cdouglas@apache.org>
Authored: Thu Apr 27 16:26:39 2017 -0700
Committer: Chris Douglas <cdouglas@apache.org>
Committed: Thu Apr 27 16:26:39 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/util/SysInfoWindows.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/689fb2fc/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
index e21adac..8b4ea54 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SysInfoWindows.java
@@ -90,7 +90,7 @@ public class SysInfoWindows extends SysInfo {
     return null;
   }
 
-  void refreshIfNeeded() {
+  synchronized void refreshIfNeeded() {
     long now = now();
     if (now - lastRefreshTime > REFRESH_INTERVAL_MS) {
       long refreshInterval = now - lastRefreshTime;


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message