From 51af2620e82e00d97f77686fd4415f38ee8e1805 Mon Sep 17 00:00:00 2001 From: Nisala Nirmana Date: Sun, 8 May 2016 20:02:03 +0530 Subject: [PATCH 1/2] HTRACE-370 fix --- .../apache/htrace/impl/HBaseSpanReceiver.java | 16 +++++++++------- .../apache/htrace/viewer/HBaseSpanViewer.java | 6 ++++-- .../htrace/viewer/HBaseSpanViewerServer.java | 5 ++++- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/htrace-hbase/src/main/java/org/apache/htrace/impl/HBaseSpanReceiver.java b/htrace-hbase/src/main/java/org/apache/htrace/impl/HBaseSpanReceiver.java index f2537f93..52e2fa88 100644 --- a/htrace-hbase/src/main/java/org/apache/htrace/impl/HBaseSpanReceiver.java +++ b/htrace-hbase/src/main/java/org/apache/htrace/impl/HBaseSpanReceiver.java @@ -101,9 +101,9 @@ public class HBaseSpanReceiver extends SpanReceiver { /** * The thread factory used to create new ExecutorService. - *

- * This will be the same factory for the lifetime of this object so that - * no thread names will ever be duplicated. + * + *

This will be the same factory for the lifetime of this object so that + * no thread names will ever be duplicated.

*/ private final ThreadFactory tf = new ThreadFactory() { private final AtomicLong receiverIdx = new AtomicLong(0); @@ -301,10 +301,10 @@ private void startClient() { /** * Close the receiver. - *

- * This tries to shutdown thread pool. * - * @throws IOException + *

This tries to shutdown thread pool.

+ * + * @throws IOException If a I/O Stream related error occurs and exception is thrown. */ @Override public void close() throws IOException { @@ -339,7 +339,9 @@ public void receiveSpan(Span span) { * Run basic test. Adds span to an existing htrace table in an existing hbase setup. * Requires a running hbase to send the traces too with an already created trace * table (Default table name is 'htrace' with column families 's' and 'i'). - * @throws IOException + * + * @param args Default arguments which passed to main method + * @throws InterruptedException Thread.sleep() can cause interruption in current thread. */ public static void main(String[] args) throws Exception { Tracer tracer = new Tracer.Builder(). diff --git a/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewer.java b/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewer.java index 114ab4f1..91b322ca 100644 --- a/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewer.java +++ b/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewer.java @@ -205,8 +205,10 @@ private static void appendValue(FieldDescriptor fd, } /** - * Run basic test. - * @throws IOException + * Run basic test for retrieving spans from Stored Format. + * + * @param args Default Arguments which passed to main method + * @throws IOException is thrown if error occur while Spans are De-serialized from byte Streams */ public static void main(String[] args) throws IOException { HBaseSpanViewer viewer = new HBaseSpanViewer(HBaseConfiguration.create()); diff --git a/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewerServer.java b/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewerServer.java index 1ae7165d..54390bae 100644 --- a/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewerServer.java +++ b/htrace-hbase/src/main/java/org/apache/htrace/viewer/HBaseSpanViewerServer.java @@ -86,7 +86,10 @@ public int run(String[] args) throws Exception { } /** - * @throws IOException + * Runs Embedded Jetty server which exposes traces and spans Servlets exposed over HTTP protocol. + * + * @param args Default Arguments which passed to main method + * @throws Exception Which are propagated from Embedded Jetty Server to Hadoop tool runner. */ public static void main(String[] args) throws Exception { ToolRunner.run(HBaseConfiguration.create(), new HBaseSpanViewerServer(), args); From a55c0204c332f7e5f8c8b2e0e5c33955f2718c27 Mon Sep 17 00:00:00 2001 From: Nisala Nirmana Date: Sun, 22 May 2016 21:12:01 +0530 Subject: [PATCH 2/2] fixed according to review comments --- htrace-hbase/pom.xml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/htrace-hbase/pom.xml b/htrace-hbase/pom.xml index 6d9ea286..d059375c 100644 --- a/htrace-hbase/pom.xml +++ b/htrace-hbase/pom.xml @@ -102,6 +102,9 @@ language governing permissions and limitations under the License. --> maven-javadoc-plugin + + org.apache.htrace.protobuf.generated + org.apache.maven.plugins @@ -239,12 +242,5 @@ language governing permissions and limitations under the License. --> - - doclint-disable - [1.8,) - - -Xdoclint:none - -