[ 
https://issues.apache.org/jira/browse/PHOENIX-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16710678#comment-16710678
 ] 

ASF GitHub Bot commented on PHOENIX-4832:
-----------------------------------------

Github user vincentpoon commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/411#discussion_r239256415
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/queryserver/tool/QueryServerCanaryTool.java
 ---
    @@ -0,0 +1,476 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.phoenix.queryserver.tool;
    +
    +import com.google.common.base.Throwables;
    +import com.google.common.io.Files;
    +import com.google.common.util.concurrent.SimpleTimeLimiter;
    +import com.google.gson.Gson;
    +import com.google.gson.GsonBuilder;
    +import net.sourceforge.argparse4j.ArgumentParsers;
    +import net.sourceforge.argparse4j.inf.ArgumentParser;
    +import net.sourceforge.argparse4j.inf.ArgumentParserException;
    +import net.sourceforge.argparse4j.inf.Namespace;
    +import org.apache.hadoop.conf.Configured;
    +import org.apache.hadoop.hbase.util.Bytes;
    +import org.apache.hadoop.util.Tool;
    +import org.apache.hadoop.util.ToolRunner;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +import java.io.File;
    +import java.io.InputStream;
    +import java.sql.Connection;
    +import java.sql.DatabaseMetaData;
    +import java.sql.DriverManager;
    +import java.sql.PreparedStatement;
    +import java.sql.ResultSet;
    +import java.sql.Statement;
    +import java.text.SimpleDateFormat;
    +import java.util.ArrayList;
    +import java.util.Date;
    +import java.util.List;
    +import java.util.Properties;
    +import java.util.concurrent.Callable;
    +import java.util.concurrent.TimeUnit;
    +
    +/**
    + * A Canary Tool to perform synthetic tests for Query Server
    + */
    +public class QueryServerCanaryTool extends Configured implements Tool {
    --- End diff --
    
    As part of that, let's fix the package as well


> Add Canary Test Tool for Phoenix Query Server
> ---------------------------------------------
>
>                 Key: PHOENIX-4832
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4832
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Ashutosh Parekh
>            Assignee: Swaroopa Kadam
>            Priority: Minor
>         Attachments: PHOENIX-4832-4.x-HBase-1.4.patch, PHOENIX-4832.patch
>
>
> A suggested improvement is to add a Canary Test tool to the Phoenix Query 
> Server. It will execute a set of Basic Tests (CRUD) against a PQS end-point 
> and report on the proper functioning and testing results. A configurable Log 
> Sink can help to publish the results as required.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to