Skip to content
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

[SNAP-2231] refactor TaskSchedulerImpl #96

Open
wants to merge 3 commits into
base: snappy/branch-2.1
Choose a base branch
from

Conversation

sumwale
Copy link

@sumwale sumwale commented Feb 27, 2018

What changes were proposed in this pull request?

  • refactored TaskSchedulerImpl a bit and made field/methods protected
    to allow overriding by child classes
  • change a couple of more pool calls causing boxing/unboxing
  • avoid stack trace dumps for some SQLExceptions like syntax errors, auth errors, constraint
    violations (same list as in snappy-store GfxdHeaderPrintWriterImpl.printStackTrace)

How was this patch tested?

snappy-spark precheckin

Sumedh Wale added 3 commits February 26, 2018 12:19
- refactored TaskSchedulerImpl a bit and made field/methods protected
  to allow overriding by child classes
- change a couple of more pool calls causing boxing/unboxing
SQLExceptions like syntax errors, auth errors, constraint violations, excluded
from stack trace dump (same list as in snappy-store GfxdHeaderPrintWriterImpl.printStackTrace
logInfo("Adding task set " + taskSet.id + " with " + tasks.length + " tasks")
this.synchronized {
protected def getTaskSetManagerForSubmit(taskSet: TaskSet): TaskSetManager = {
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be in a synchronized block? Else put in a comment, it should always be called within "this" lock.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add

@sumwale sumwale force-pushed the snappy/branch-2.1 branch 4 times, most recently from 4ffe404 to 79ddd88 Compare June 13, 2021 14:16
@sumwale sumwale force-pushed the snappy/branch-2.1 branch 2 times, most recently from 52a9a47 to 763e1bb Compare June 17, 2021 15:26
@sumwale sumwale force-pushed the snappy/branch-2.1 branch 5 times, most recently from 1456d1f to 3d73189 Compare June 27, 2021 18:39
@sumwale sumwale force-pushed the snappy/branch-2.1 branch 6 times, most recently from 1feaa36 to cdd6d29 Compare April 6, 2022 23:24
@sumwale sumwale force-pushed the snappy/branch-2.1 branch 3 times, most recently from cba053b to 3527357 Compare June 10, 2022 08:59
@sumwale sumwale force-pushed the snappy/branch-2.1 branch from 0169c3d to 1fb3673 Compare June 12, 2022 12:56
@sumwale sumwale force-pushed the snappy/branch-2.1 branch from 4a3161a to efa4458 Compare June 29, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants