You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/04/20 16:45:00 UTC
[jira] [Created] (CARBONDATA-2372) Potential division by zero in
InputProcessorStepForPartitionImpl#partitionInputReaderIterators
Ted Yu created CARBONDATA-2372:
----------------------------------
Summary: Potential division by zero in InputProcessorStepForPartitionImpl#partitionInputReaderIterators
Key: CARBONDATA-2372
URL: https://issues.apache.org/jira/browse/CARBONDATA-2372
Project: CarbonData
Issue Type: Bug
Reporter: Ted Yu
{code}
int parallelThreadNumber = Math.min(inputIterators.length, numberOfCores);
{code}
parallelThreadNumber is later used in:
{code}
iterators[i % parallelThreadNumber].add(inputIterators[i]);
{code}
We should check that parallelThreadNumber is not zero before the division.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)