phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [phoenix] karanmehta93 commented on a change in pull request #453: [PHOENIX-5172] Harden the PQS canary synth test tool with retry mechanism and more logging
Date Tue, 12 Mar 2019 21:58:15 GMT
karanmehta93 commented on a change in pull request #453: [PHOENIX-5172] Harden the PQS canary
synth test tool with retry mechanism and more logging

 File path: phoenix-core/src/test/java/org/apache/phoenix/tool/
 @@ -0,0 +1,218 @@
+ * 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
+ *
+ *
+ *
+ * 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.tool;
+import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
+import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
+import org.apache.phoenix.query.QueryServices;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Properties;
+import static org.apache.phoenix.tool.PhoenixCanaryTool.propFileName;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+public class ParameterizedPhoenixCanaryToolIT extends ParallelStatsDisabledIT {
+	private static String connString = "";
+	private static Properties canaryProp = new Properties();
+	private static Connection connection = null;
+	private static final String stdOutSink = "org.apache.phoenix.tool.PhoenixCanaryTool$StdOutSink";
+	private static final String fileOutSink = "org.apache.phoenix.tool.PhoenixCanaryTool$FileOutSink";
+	private boolean isNamespaceEnabled;
+	private boolean isPositiveTestType;
+	private List<String> cmd = new ArrayList<>();
+	private String resultSinkOption;
+	private ByteArrayOutputStream out = new ByteArrayOutputStream();
+	@Parameterized.Parameters(name="ParameterizedPhoenixCanaryToolIT_assertTrue={0},isNamespaceEnabled={1},resultSinkOption={2}")
 Review comment:
   Update test name

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message