HBASE-1184 HColumnDescriptor is too resrictive with family names
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@741317 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08805166e8
commit
554932bf63
|
@ -42,6 +42,8 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1167 JSP doesn't work in a git checkout (Nitay Joffe via Andrew
|
||||
Purtell)
|
||||
HBASE-1178 Add shutdown command to shell
|
||||
HBASE-1184 HColumnDescriptor is too restrictive with family names
|
||||
(Toby White via Andrew Purtell)
|
||||
|
||||
Release 0.19.0 - 01/21/2009
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -242,12 +242,11 @@ public class HColumnDescriptor implements ISerializable, WritableComparable<HCol
|
|||
Bytes.toString(b));
|
||||
}
|
||||
for (int i = 0; i < (b.length - 1); i++) {
|
||||
if (Character.isLetterOrDigit(b[i]) || b[i] == '_' || b[i] == '.') {
|
||||
continue;
|
||||
if (Character.isISOControl(b[i])) {
|
||||
throw new IllegalArgumentException("Illegal character <" + b[i] +
|
||||
">. Family names cannot contain control characters: " +
|
||||
Bytes.toString(b));
|
||||
}
|
||||
throw new IllegalArgumentException("Illegal character <" + b[i] +
|
||||
">. Family names can only contain 'word characters' and must end" +
|
||||
"with a colon: " + Bytes.toString(b));
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue