This is an automated email from the ASF dual-hosted git repository.

vjasani pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x by this push:
     new d0c5627  PHOENIX-6482 Fix PherfMainIT#testPherfMain failure and 
provide better logging in Pherf
d0c5627 is described below

commit d0c562787ca553dc2e3e5aea9f6ad3398c05cc1a
Author: Viraj Jasani <[email protected]>
AuthorDate: Sat May 29 15:29:18 2021 +0530

    PHOENIX-6482 Fix PherfMainIT#testPherfMain failure and provide better 
logging in Pherf
---
 phoenix-pherf/src/it/java/org/apache/phoenix/pherf/PherfMainIT.java | 4 ++--
 phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java     | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/phoenix-pherf/src/it/java/org/apache/phoenix/pherf/PherfMainIT.java 
b/phoenix-pherf/src/it/java/org/apache/phoenix/pherf/PherfMainIT.java
index c71fda5..b9cfbcf 100644
--- a/phoenix-pherf/src/it/java/org/apache/phoenix/pherf/PherfMainIT.java
+++ b/phoenix-pherf/src/it/java/org/apache/phoenix/pherf/PherfMainIT.java
@@ -54,8 +54,8 @@ public class PherfMainIT extends ResultBaseTestIT {
     @Test
     public void testPherfMain() throws Exception {
         String[] args = { "-q", "-l",
-                "--schemaFile", ".*create_prod_test_unsalted.sql",
-                "--scenarioFile", ".*prod_test_unsalted_scenario.xml"};
+                "-schemaFile", ".*create_prod_test_unsalted.sql",
+                "-scenarioFile", ".*prod_test_unsalted_scenario.xml"};
         Pherf pherf = new Pherf(args);
         pherf.run();
 
diff --git a/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java 
b/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java
index 092e450..7b0a5e8 100644
--- a/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java
+++ b/phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java
@@ -140,6 +140,7 @@ public class Pherf {
             command = parser.parse(options, args);
         } catch (ParseException e) {
             hf.printHelp("Pherf", options);
+            LOGGER.error("Something went wrong while parsing.", e);
             System.exit(1);
         }
 
@@ -237,6 +238,7 @@ public class Pherf {
             new Pherf(args).run();
         } catch (Exception e) {
             e.printStackTrace();
+            LOGGER.error("Something went wrong.", e);
             System.exit(1);
         }
     }

Reply via email to