HBASE-14510 Fix coprocessor handling of duplicate classes (Yerui Sun)

This commit is contained in:
stack 2015-09-29 15:01:10 -07:00
parent 255fd07d35
commit 16ad5e61c8
2 changed files with 1 additions and 2 deletions

View File

@ -1361,7 +1361,6 @@ public class HTableDescriptor implements WritableComparable<HTableDescriptor> {
* {@link HConstants#CP_HTD_ATTR_VALUE_PATTERN}
* @throws IOException
*/
// Pity about ugly method name. addCoprocessor(String) already taken above.
public HTableDescriptor addCoprocessorWithSpec(final String specStr) throws IOException {
String className = getCoprocessorClassNameFromSpecStr(specStr);
if (className == null) {

View File

@ -584,7 +584,7 @@ module Hbase
if (k =~ /coprocessor/i)
v = String.new(value)
v.strip!
htd.addCoprocessor(v)
htd.addCoprocessorWithSpec(v)
valid_coproc_keys << key
end
end