HBASE-14510 Fix coprocessor handling of duplicate classes (Yerui Sun)
This commit is contained in:
parent
255fd07d35
commit
16ad5e61c8
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue