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

Teach tasks what machine they are running on #8190

Merged
merged 5 commits into from
Aug 2, 2019

Conversation

jihoonson
Copy link
Contributor

Part of #8061.

Description

In parallel native indexing, the middleManager is responsible for serving intermediary data for shuffle. As a result, the phase 2 tasks need to know where phase 1 tasks ran.

This PR lets tasks know where they are running by adding new system properties. This is supposed to be used for only internal purpose and so doesn't have to be documented.


This PR has:

  • been self-reviewed.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • been tested in a test Druid cluster.

@Retention(RetentionPolicy.RUNTIME)
@BindingAnnotation
@PublicApi
public @interface Parent
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest ParentNode instead to make it more clear what the annotation relates to

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm I want to make it consistent with Self. Do you want me to rename it as well? I guess javadoc is pretty clear now that it relates to DruidNode.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, that's fine then, no need to rename in this patch

@fjy
Copy link
Contributor

fjy commented Jul 30, 2019

@jihoonson can you fix merge conflicts?

@jihoonson
Copy link
Contributor Author

@fjy fixed.

Copy link
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

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

overall lgtm, but CliIndexer.java needs to bind parent to self I think since #8107 has been merged.

@jihoonson
Copy link
Contributor Author

@clintropolis thanks, fixed.

Copy link
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

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

lgtm, thanks 👍

@jihoonson jihoonson merged commit 8a16a8e into apache:master Aug 2, 2019
@clintropolis clintropolis added this to the 0.16.0 milestone Aug 8, 2019
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.

4 participants