junegunn commented on PR #6509:
URL: https://github.com/apache/hbase/pull/6509#issuecomment-2544605789

   @guluo2016 Thanks for the review.
   
   
   
   > An incorrect number in your comment. @junegunn
   
   I've just checked again and confirmed that both commands fail without the 
patch. The first one starts, but soon aborts with a divide-by-zero error.
   
   ```sh
   bin/hbase pe --nomapred --compress=LZ4 --rows=1073741824 randomWrite 20
   # java.io.IOException: java.lang.ArithmeticException: / by zero
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation.doLocalClients(PerformanceEvaluation.java:540)
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation.runTest(PerformanceEvaluation.java:2674)
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation.run(PerformanceEvaluation.java:3216)
   #         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82)
   #         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:97)
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation.main(PerformanceEvaluation.java:3250)
   # Caused by: java.lang.ArithmeticException: / by zero
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation$TestBase.testTimed(PerformanceEvaluation.java:1420)
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation$TestBase.test(PerformanceEvaluation.java:1395)
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation.runOneClient(PerformanceEvaluation.java:2642)
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation$1.call(PerformanceEvaluation.java:518)
   #         at 
org.apache.hadoop.hbase.PerformanceEvaluation$1.call(PerformanceEvaluation.java:511)
   #         at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   #         at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   #         at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   #         at java.base/java.lang.Thread.run(Thread.java:833)
   
   bin/hbase pe --nomapred --compress=LZ4 --rows=10737418240 randomWrite 20
   # java.lang.NumberFormatException: For input string: "10737418240"
   
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to