-
Notifications
You must be signed in to change notification settings - Fork 440
TEZ-2119: Counter for launched containers #301
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
Conversation
ayushtkn
left a comment
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.
Thanx @abstractdog for the PR. Sounds cool, minor stuff.
Do you plan to extend a test to cover this?
tez-api/src/main/java/org/apache/tez/serviceplugins/api/TaskScheduler.java
Outdated
Show resolved
Hide resolved
tez-api/src/main/java/org/apache/tez/serviceplugins/api/TaskSchedulerContext.java
Outdated
Show resolved
Hide resolved
tez-api/src/main/java/org/apache/tez/serviceplugins/api/TaskSchedulerContext.java
Outdated
Show resolved
Hide resolved
tez-dag/src/main/java/org/apache/tez/dag/app/rm/TaskSchedulerManager.java
Outdated
Show resolved
Hide resolved
yes, absolutely, I'm trying to add a UT |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
1eb42e0 to
fcc8a54
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
finally a working version for this patch, unit tests are included, tested on cluster as show below:
cc: @r0hini , can you please review the code? tested on cluster and with unit tests |
|
|
||
| TaskSchedulerWithDrainableContext taskScheduler = (TaskSchedulerWithDrainableContext) ((TaskSchedulerManagerForTest) taskSchedulerManager) | ||
| .getSpyTaskScheduler(); | ||
| TaskSchedulerWithDrainableContext taskScheduler = |
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.
only a reformat
| DAGClientServer mockClientService; | ||
| TestEventHandler mockEventHandler; | ||
| ContainerSignatureMatcher mockSigMatcher; | ||
| MockTaskSchedulerManager schedulerHandler; |
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.
schedulerHandler was incorrect, simply renamed
| @Override | ||
| TaskScheduler createUberTaskScheduler(TaskSchedulerContext taskSchedulerContext, int schedulerId) { | ||
| taskSchedulerContexts.add(taskSchedulerContext); | ||
| testTaskSchedulers.add(uberTaskScheduler); |
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.
this doesn't have to do anything with this patch, it's just fixed for clarity's sake
| /** | ||
| * This container launcher simply implements ContainerLauncher methods with the proper context callbacks. | ||
| */ | ||
| public static class ContainerLauncherForTest extends ContainerLauncher { |
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.
originally: ContainerLauncherForTest was a mock launcher for reporting errors, I simply renamed it to FailureReporterContainerLauncher, and turned ContainerLauncherForTest to a NO-OP-ish container launcher with simple callbacks
|
🎊 +1 overall
This message was automatically generated. |
jteagles
left a comment
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.
+1. Looks good and will be a great feature. Can you take care of committing this?
All the changes are according to the conversation on Jira + addressing comments on this PR so far.
Added comments myself to clarify what unrelated changes mean