- 
                Notifications
    
You must be signed in to change notification settings  - Fork 988
 
DRILL-5961: For long running queries (> 10 min) Drill may raise FragmentSetupException for completed/cancelled fragments #1041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -277,7 +277,9 @@ public void startFragmentPendingRemote(final FragmentManager fragmentManager) { | |
| @Override | ||
| protected void cleanup() { | ||
| runningFragments.remove(fragmentHandle); | ||
| workBus.removeFragmentManager(fragmentHandle); | ||
| if (!fragmentManager.isCancelled()) { | ||
| workBus.removeFragmentManager(fragmentHandle, false); | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why you don't want to cancel here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If cleanup is not called as a result of FragmentManager cancellation, it is part of the regular cleanup after run is complete.  | 
||
| } | ||
| indicateIfSafeToExit(); | ||
| } | ||
| }); | ||
| 
          
            
          
           | 
    ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this is redundant. Doesn't seem like we ever return false, and the callers never seem to check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ControlMessageHandler checks the result on line 196.