HDFS-9739. DatanodeStorage.isValidStorageId() is broken (Contributed by Mingliang Liu)

(cherry picked from commit d6b1acb940)
This commit is contained in:
Vinayakumar B 2016-02-03 10:33:33 +05:30
parent 8577c0b6a2
commit e8a9a69a27
2 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,7 @@ public class DatanodeStorage {
try { try {
// Attempt to parse the UUID. // Attempt to parse the UUID.
if (storageID != null && storageID.indexOf(STORAGE_ID_PREFIX) == 0) { if (storageID != null && storageID.indexOf(STORAGE_ID_PREFIX) == 0) {
UUID.fromString(storageID.substring(STORAGE_ID_PREFIX.length()));
return true; return true;
} }
} catch (IllegalArgumentException ignored) { } catch (IllegalArgumentException ignored) {

View File

@ -1786,6 +1786,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9718. HAUtil#getConfForOtherNodes should unset independent generic keys HDFS-9718. HAUtil#getConfForOtherNodes should unset independent generic keys
before initialize (DENG FEI via vinayakumarb) before initialize (DENG FEI via vinayakumarb)
HDFS-9739. DatanodeStorage.isValidStorageId() is broken
(Mingliang Liu via vinayakumarb)
Release 2.7.3 - UNRELEASED Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES