hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inigo...@apache.org
Subject [18/50] [abbrv] hadoop git commit: HADOOP-14354. SysInfoWindows is not thread safe. Contributed by Inigo Goiri
Date Tue, 02 May 2017 21:54:14 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/fd6213c9
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/fd6213c9
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/fd6213c9

Branch: refs/heads/HDFS-10467
Commit: fd6213c91a3bc63e60aa44fd33194624c742b29c
Parents: 97a97f3
Author: Chris Douglas <cdouglas@apache.org>
Authored: Thu Apr 27 16:26:39 2017 -0700
Committer: Inigo <inigoiri@apache.org>
Committed: Tue May 2 14:52:04 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/fd6213c9/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