[
https://issues.apache.org/jira/browse/CARBONDATA-2372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated CARBONDATA-2372:
-------------------------------
Description:
{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.
was:
{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.
> 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
> Priority: Minor
>
> {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)