HBASE-19300 TestMultithreadedTableMapper fails in branch-1.4
This commit is contained in:
parent
de16690b7a
commit
f7f425e53e
|
@ -166,7 +166,7 @@ public class MultithreadedTableMapper<K2, V2> extends TableMapper<K2, V2> {
|
|||
|
||||
@Override
|
||||
public boolean nextKeyValue() throws IOException, InterruptedException {
|
||||
synchronized (this) {
|
||||
synchronized (outer) {
|
||||
if (!outer.nextKeyValue()) {
|
||||
return false;
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ public class MultithreadedTableMapper<K2, V2> extends TableMapper<K2, V2> {
|
|||
@Override
|
||||
public void write(K2 key, V2 value) throws IOException,
|
||||
InterruptedException {
|
||||
synchronized (this) {
|
||||
synchronized (outer) {
|
||||
outer.write(key, value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue