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 4cb3e029b0
commit e0929bbc5a
2 changed files with 1 additions and 2 deletions

View File

@ -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) {

View File

@ -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