HADOOP-14354. SysInfoWindows is not thread safe. Contributed by Inigo Goiri
This commit is contained in:
parent
31cf480d65
commit
689fb2fc66
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue