Github user jihoonson commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/17#discussion_r13477302
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/master/DefaultTaskScheduler.java ---
    @@ -821,7 +820,7 @@ public void 
assignToLeafTasks(LinkedList<TaskRequestEvent> taskRequests) {
                   host, container.getTaskPort()));
               assignedRequest.add(attemptId);
     
    -          scheduledObjectNum -= task.getAllFragments().size();
    --- End diff --
    
    @hyunsik thanks for your comment.
    I think that this will be ok because scheduledObjectNum is individually 
maintained in DefaultTaskScheduler and LazyTaskScheduler. As you know, SubQuery 
checks only the remaining scheduledObjects from TaskScheduler whether it is the 
DefaultTaskScheduler or LazyTaskScheduler. 
    
    However, LazyTaskScheduler seems not to work as you said. As you already 
know, LazyTaskScheduler has a fundamentally different architecture with that of 
DefaultTaskScheduler. If we decide to maintain LazyTaskScheduler, I think that 
we need to refactor the scheduler architecture to work both schedulers well. 
    
    In my opinion, we need to test the effectiveness of LazyTaskScheduler for 
our decision.
    I think that the representative use case of LazyTaskScheduler will be the 
ETL. So, how about conducting some tests for it? If other guys agree, I'll 
start.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to