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/28 13:14:00 UTC
[jira] [Updated] (CARBONDATA-2372) Potential division by zero in
InputProcessorStepForPartitionImpl#partitionInputReaderIterators
[ 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)