phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vincentpoon <...@git.apache.org>
Subject [GitHub] phoenix pull request #411: PHOENIX-4832: Add Canary Test Tool for Phoenix Qu...
Date Wed, 05 Dec 2018 22:10:22 GMT
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


---

Mime
View raw message