[ https://issues.apache.org/jira/browse/HBASE-12917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291677#comment-14291677 ]
Vikas Vishwakarma commented on HBASE-12917: ------------------------------------------- got the issue, I think there is a recursive loop in the function createCell leading to StackOverflowError. This function createCell invoked from doRow of different scanners keeps calling itself recursively and hits StackOverflowError static Cell createCell(final byte [] keyRow) { return createCell(keyRow); } ======= static class UniformRandomSmallScan extends ReadBenchmark { .... void doRow(int i) throws Exception { HFileScanner scanner = this.reader.getScanner(false, false); byte [] b = getRandomRow(); // System.out.println("Random row: " + new String(b)); Cell c = createCell(b); ........ } ... > HFilePerformanceEvaluation UniformRandomSmallScan fails with > StackOverflowError > ------------------------------------------------------------------------------- > > Key: HBASE-12917 > URL: https://issues.apache.org/jira/browse/HBASE-12917 > Project: HBase > Issue Type: Bug > Components: hbase > Affects Versions: 2.0.0 > Environment: Ubuntu > Reporter: Vikas Vishwakarma > > While trying to run HFilePerformanceEvaluation with hbase-2.0.0 > UniformRandomSmallScan is failing with StackOverflowError. Lookes related to > the byte array to Cell based HFile changes. > 2015-01-26 12:42:09,551 WARN [main] util.NativeCodeLoader: Unable to load > native-hadoop library for your platform... using builtin-java classes where > applicable > 2015-01-26 12:42:09,760 INFO [main] hbase.HFilePerformanceEvaluation: > Running SequentialWriteBenchmark for 1000000 rows. > 2015-01-26 12:42:10,007 INFO [main] hfile.CacheConfig: CacheConfig:disabled > 2015-01-26 12:42:11,560 INFO [main] hbase.HFilePerformanceEvaluation: > Running SequentialWriteBenchmark for 1000000 rows took 1496ms. > 2015-01-26 12:42:11,561 INFO [0] hbase.HFilePerformanceEvaluation: Running > UniformRandomSmallScan for 1000000 rows. > 2015-01-26 12:42:11,561 INFO [0] hfile.CacheConfig: CacheConfig:disabled > Exception in thread "0" java.lang.StackOverflowError > at > org.apache.hadoop.hbase.HFilePerformanceEvaluation.createCell(HFilePerformanceEvaluation.java:78) > at > org.apache.hadoop.hbase.HFilePerformanceEvaluation.createCell(HFilePerformanceEvaluation.java:78) > at > org.apache.hadoop.hbase.HFilePerformanceEvaluation.createCell(HFilePerformanceEvaluation.java:78) > at > org.apache.hadoop.hbase.HFilePerformanceEvaluation.createCell(HFilePerformanceEvaluation.java:78) -- This message was sent by Atlassian JIRA (v6.3.4#6332)