HDFS-5448. Fix break caused by previous checkin for HDFS-5448.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-2832@1538655 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arpit Agarwal 2013-11-04 16:00:12 +00:00
parent 9660bfa84c
commit 0091606e2d
2 changed files with 5 additions and 1 deletions

View File

@ -65,3 +65,6 @@ IMPROVEMENTS:
HDFS-5448. Datanode should generate its ID on first registration. (Arpit
Agarwal)
HDFS-5448. Fix break caused by previous checkin for HDFS-5448. (Arpit
Agarwal)

View File

@ -331,7 +331,8 @@ class BPOfferService {
}
}
synchronized DatanodeRegistration createRegistration() {
synchronized DatanodeRegistration createRegistration()
throws IOException {
Preconditions.checkState(bpNSInfo != null,
"getRegistration() can only be called after initial handshake");
return dn.createBPRegistration(bpNSInfo);