Implemented a new endpoint to get running tasks by datasource#5260
Implemented a new endpoint to get running tasks by datasource#5260gianm merged 1 commit intoapache:masterfrom
Conversation
There was a problem hiding this comment.
maybe add a method to TaskStorageQueryAdapter getCreatedDateTimeAndDataSource which fetches datasource and created time in single query instead of issuing multiple queries to metadata storage.
There was a problem hiding this comment.
Added getCreatedDateTimeAndDataSource in TaskStorageQueryAdapter
2e06749 to
09c2a6e
Compare
fd75793 to
0795e1a
Compare
|
@nishantmonu51 One test case is failing from RemoteTaskRunnerTest class due to timeout exception. Due to this build is not getting passed. Any suggestion on this ? |
|
@NirajaM I'll try re-running the test |
|
Travis failure stack trace - @NirajaM: this is probably related to your changes, can you please check, |
There was a problem hiding this comment.
this still calls the apply twice which leads to multiple queries to the db.
5413e32 to
1e73a14
Compare
|
@nishantmonu51 Fixed junit test case and the review comment. Could you please review |
nishantmonu51
left a comment
There was a problem hiding this comment.
LGTM, left a minor comment. 👍 post travis.
There was a problem hiding this comment.
minor nit: you can directly call taskStorageQueryAdapter.get instead of creating cTDsFunction
There was a problem hiding this comment.
Thanks. Fixed the same
5de2317 to
4a8bc0f
Compare
043dee4 to
fbc593a
Compare
|
@drcrallen Can we do something to fix this timeout exceptions. Most of the time one or the other test case fails due to java.lang.RuntimeException: java.util.concurrent.TimeoutException. When I check locally everything is fine. If you keep on triggering build sometimes it passes. I think we should first fix this. |
0d79b40 to
aae2f97
Compare
drcrallen
left a comment
There was a problem hiding this comment.
Cool, thanks! please fix merge conflicts and this is good to go
…sks by datasources and added datasource information as part of existing endpoint /druid/indexer/v1/runningTasks. Added junit test cases for the newly implemented API and fixed existing junit test cases. Fixed review comments - added new method getCreatedDateTimeAndDataSource into TaskStorageQueryAdapter class and formatted changed files
|
@drcrallen Thanks. Fixed the merge conflicts |
gianm
left a comment
There was a problem hiding this comment.
LGTM. @NirajaM could you please fill out the project CLA so we can accept this contribution?
It's at: http://druid.io/community/cla.html
|
@gianm I already signed and sent project CLA |
|
@NirajaM I don't see it on the list we have that keeps track of who has filled out the online form. Did you fill that form out or did you send something over email? If you had done an email, it might be easier to fill out the form since I am not totally sure where the emails go. |
|
@gianm I filled the online form as well |
|
@NirajaM Okay I see it now. Thank you. |
Use case for us - We have multiple jobs running for different datasources, so we want to filter running tasks only for particular datasource in the console.