HBASE-14510 Fix coprocessor handling of duplicate classes (Yerui Sun)
This commit is contained in:
parent
4cb3e029b0
commit
e0929bbc5a
|
@ -1265,7 +1265,6 @@ public class HTableDescriptor implements Comparable<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) {
|
||||
|
|
|
@ -610,7 +610,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