You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Kunal Kapoor (JIRA)" <ji...@apache.org> on 2018/11/23 05:41:00 UTC

[jira] [Created] (CARBONDATA-3123) JVM crash when reading through CarbonReader

Kunal Kapoor created CARBONDATA-3123:
----------------------------------------

             Summary: JVM crash when reading through CarbonReader
                 Key: CARBONDATA-3123
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3123
             Project: CarbonData
          Issue Type: Bug
         Environment: Java - 1.8.0_40
CPU(s): 8
Cores(s): 8
            Reporter: Kunal Kapoor
            Assignee: Kunal Kapoor
             Fix For: 1.5.1


How to Reproduce:

 
{code:java}
// ExecutorService executorService = Executors.newFixedThreadPool(8);
try {
  CarbonReader reader2 = CarbonReader.builder(dataDir).withRowRecordReader().build();
  List<CarbonReader> multipleReaders = reader2.split(8);
  try {
    List<ReadLogic> tasks = new ArrayList<>();
    List<Future> results = new ArrayList<>();
    count = 0;
    long start = System.currentTimeMillis();
    for (CarbonReader reader_i : multipleReaders) {
      results.add(executorService.submit(new ReadLogic(reader_i)));
    }
    for (Future result_i : results) {
      count += (long) result_i.get();
    }
    long end = System.currentTimeMillis();
    System.out.println("[Parallel read] Time: " + (end - start) + " ms");
    Assert.assertEquals(numFiles * numRowsPerFile, count);
  } catch (Exception e) {
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
} catch (Exception e) {
  e.printStackTrace();
  Assert.fail(e.getMessage());
} finally {
  executorService.shutdown();
  executorService.awaitTermination(10, TimeUnit.MINUTES);
  CarbonProperties.getInstance()
      .addProperty(CarbonCommonConstants.ENABLE_UNSAFE_IN_QUERY_EXECUTION, "false");
}{code}

When the above code is executed the JVM crashes with a SIGSEGV fault error.





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)