GitHub user akashrn5 opened a pull request:

    https://github.com/apache/carbondata/pull/2953

    [CARBONDATA-3132]Correct the task disrtibution in case of compaction when 
the actual block nodes and active nodes are different

    ### Why This PR?
    There is an unequal distribution of tasks during compaction
    ex: When the load is done using replication factor 2 and all nodes are 
active and during compaction one node is down, basically it is not active 
executor, so the task distribution should take care to distribute the tasks 
equally among all the active executors instead of giving more tasks to single 
executor and less to other executor. But sometimes the unequal distribution 
happens and the compaction becomes sow.
    
    ### Solution
    Currently we are not getting active executors before the node block mapping 
and sending the list of active executors as null, which will lead to the above 
problem sometimes. so get the active executors and send for node block mapping 
logic which will handle to distribute equally.
    
    
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [x] Any interfaces changed?
     NA
     - [x] Any backward compatibility impacted?
     NA
     - [x] Document update required?
    NA
    
     - [x] Testing done
    tested using 3 node and 6 node cluster
            Please provide details on 
            - Whether new unit test cases have been added or why no new tests 
are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance 
test report.
            - Any additional information to help reviewers in testing this 
change.
           
     - [x] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA. 
    NA


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/akashrn5/incubator-carbondata distribute

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/2953.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2953
    
----
commit caaa044b461a64f28be6107e55e8ab2a1ae2bf4d
Author: brijoobopanna <brijoobopanna@...>
Date:   2018-11-27T06:38:15Z

    Correct the task disrtibution in case of compaction when the actual block 
nodes and active nodes are different

----


---

Reply via email to