HDFS-6848. Lack of synchronization on access to datanodeUuid in DataStorage#format. (Contributed by Xiaoyu Yao)
This commit is contained in:
parent
1e40cbba7f
commit
0bbeb80931
|
@ -329,6 +329,9 @@ Release 2.6.0 - UNRELEASED
|
||||||
|
|
||||||
HDFS-6942. Fix typos in log messages. (Ray Chiang via wheat9)
|
HDFS-6942. Fix typos in log messages. (Ray Chiang via wheat9)
|
||||||
|
|
||||||
|
HDFS-6848. Lack of synchronization on access to datanodeUuid in
|
||||||
|
DataStorage#format(). (Xiaoyu Yao via Arpit Agarwal)
|
||||||
|
|
||||||
BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
|
BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
|
||||||
|
|
||||||
HDFS-6387. HDFS CLI admin tool for creating & deleting an
|
HDFS-6387. HDFS CLI admin tool for creating & deleting an
|
||||||
|
|
|
@ -438,7 +438,7 @@ public class DataStorage extends Storage {
|
||||||
this.clusterID = nsInfo.getClusterID();
|
this.clusterID = nsInfo.getClusterID();
|
||||||
this.namespaceID = nsInfo.getNamespaceID();
|
this.namespaceID = nsInfo.getNamespaceID();
|
||||||
this.cTime = 0;
|
this.cTime = 0;
|
||||||
this.datanodeUuid = datanodeUuid;
|
setDatanodeUuid(datanodeUuid);
|
||||||
|
|
||||||
if (sd.getStorageUuid() == null) {
|
if (sd.getStorageUuid() == null) {
|
||||||
// Assign a new Storage UUID.
|
// Assign a new Storage UUID.
|
||||||
|
|
Loading…
Reference in New Issue