This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new d50f5b7 HADOOP-14354. SysInfoWindows is not thread safe. Contributed
by Inigo Goiri
d50f5b7 is described below
commit d50f5b7df47c02aee1084e74b853a0d431abebb4
Author: Chris Douglas <[email protected]>
AuthorDate: Thu Apr 27 16:26:39 2017 -0700
HADOOP-14354. SysInfoWindows is not thread safe. Contributed by Inigo Goiri
(cherry picked from commit 689fb2fc661f233367ecbfa26795ff4c01408f3e)
---
.../src/main/java/org/apache/hadoop/util/SysInfoWindows.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 ffa2b65..e894014 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
@@ -91,7 +91,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: [email protected]
For additional commands, e-mail: [email protected]