From e5a4232da59db05a575035b69b14cb4fb4c87bcf Mon Sep 17 00:00:00 2001 From: KAI XIE Date: Fri, 13 Dec 2019 21:56:02 +0800 Subject: [PATCH] Fix scanner (#1) * check in pom.xml * remove unnecessary plugins * remove unnecessary parent pom * apply patch #202 --- .gitignore | 1 - pom.xml | 296 +++++++++++++++++++++++++++++++ src/RegionClient.java | 1 + src/UnknownScannerException.java | 2 +- 4 files changed, 298 insertions(+), 2 deletions(-) create mode 100644 pom.xml diff --git a/.gitignore b/.gitignore index f9e5eed7..a03d5b30 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ build/ -pom.xml target/ /bin/ .idea diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..34899219 --- /dev/null +++ b/pom.xml @@ -0,0 +1,296 @@ + + + 4.0.0 + + org.hbase + asynchbase + 1.8.3-SNAPSHOT + Asynchronous HBase Client + + The Async HBase Authors + http://opentsdb.net + + + An alternative HBase client library for applications requiring fully + asynchronous, non-blocking and thread-safe HBase connectivity. + + https://github.com/OpenTSDB/asynchbase + + + BSD + http://www.opensource.org/licenses/BSD-3-Clause + repo + + + + scm:git:git@github.com:OpenTSDB/asynchbase.git + https://github.com/OpenTSDB/asynchbase + + + GitHub + https://github.com/OpenTSDB/asynchbase/issues + + + + User List + asynchbase@googlegroups.com + asynchbase+subscribe@googlegroups.com + asynchbase+unsubscribe@googlegroups.com + https://groups.google.com/group/asynchbase + + + + + tsuna + Benoit "tsuna" Sigoure + tsunanet@gmail.com + + developer + + -8 + + + 2010 + + jar + + + .mvn-compat/src/main/java + test + + + + + org.xolstice.maven.plugins + protobuf-maven-plugin + 0.5.0 + + protoc + ${basedir}/protobuf + + + + + compile + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.5.1 + + 1.6 + 1.6 + -Xlint + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12.4 + + + **/TestIntegration.java + **/TestIncrementCoalescing.java + + + + + + + + + + + + 1.8 + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12.4 + + + **/TestKerberosClientAuthProvider.java + **/TestLogin.java + **/TestSimpleClientAuthProvider.java + **/TestIntegration.java + **/TestIncrementCoalescing.java + + + + + + + + + + + + com.google.guava + guava + 18.0 + + + + com.google.protobuf + protobuf-java + 2.5.0 + + + + io.netty + netty + 3.9.4.Final + + + + com.stumbleupon + async + 1.4.0 + + + + org.apache.zookeeper + zookeeper + 3.4.5 + + + log4j + log4j + + + org.slf4j + slf4j-log4j12 + + + jline + jline + + + junit + junit + + + + + + org.slf4j + slf4j-api + 1.7.7 + + + + + + org.slf4j + log4j-over-slf4j + 1.7.7 + runtime + + + + + + org.hamcrest + hamcrest-core + 1.3 + test + + + + junit + junit + 4.11 + test + + + + org.javassist + javassist + 3.18.1-GA + test + + + + org.mockito + mockito-all + 1.9.5 + test + + + + org.objenesis + objenesis + 2.1 + test + + + + org.powermock + powermock-module-junit4 + 1.5.4 + test + + + + org.powermock + powermock-api-mockito + 1.5.4 + test + + + + ch.qos.logback + logback-core + 1.2.1 + test + + + ch.qos.logback + logback-classic + 1.2.1 + test + + + + + + UTF-8 + + + diff --git a/src/RegionClient.java b/src/RegionClient.java index ad83aa1f..59c0d8e0 100644 --- a/src/RegionClient.java +++ b/src/RegionClient.java @@ -1547,6 +1547,7 @@ protected Object decode(final ChannelHandlerContext ctx, final class RetryTimer implements TimerTask { public void run(final Timeout timeout) { if (isAlive()) { + rpc.attempt++; sendRpc(rpc); } else { if (rpc instanceof MultiAction) { diff --git a/src/UnknownScannerException.java b/src/UnknownScannerException.java index a983ac98..d200b26e 100644 --- a/src/UnknownScannerException.java +++ b/src/UnknownScannerException.java @@ -29,7 +29,7 @@ /** * Exception thrown when we try to use an invalid or expired scanner ID. */ -public final class UnknownScannerException extends RecoverableException +public final class UnknownScannerException extends NonRecoverableException implements HasFailedRpcException { static final String REMOTE_CLASS =