Skip to content

Conversation

@biaoma-ty
Copy link

@biaoma-ty biaoma-ty commented Jul 16, 2016

# What changes were proposed in this pull request?
Currently, the Messages used by shuffle: OpenBlock, UploadBlock, RegisterExecutor has a simple introduction for the usage, while the other three (StreamHandle, RegisterDriver, HearBeat) haven' t.
This PR added them.

# How was this patch tested?

Please let some commiters to review the added annotation to judge them.

@biaoma-ty biaoma-ty changed the title [SPARK-16587] The annotation for the abstract Class 'BlockTransferMessage' missing several kind of messages. [SPARK-16587] [CORE]The annotation for the abstract Class 'BlockTransferMessage' missing several kind of messages. Jul 16, 2016
@biaoma-ty biaoma-ty changed the title [SPARK-16587] [CORE]The annotation for the abstract Class 'BlockTransferMessage' missing several kind of messages. [SPARK-16587] [CORE] The annotation for the abstract Class 'BlockTransferMessage' missing several kind of messages. Jul 16, 2016
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

* - RegisterExecutor is only handled by the external shuffle service.
* - StreamHandle is only handled by the OneForOneBlockFetcher.
* - RegisterDriver is only handled by the MesosExternalShuffleService.
* - HearBeat is only handled by the MesosExternalShuffleService.
Copy link
Member

Choose a reason for hiding this comment

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

HeartBeat. (This could also be an HTML list.) I am not sure these docs match the others. They're describing what's handled by the Netty service for external shuffle block handler, not just a class where they're used.

Copy link
Author

@biaoma-ty biaoma-ty Jul 16, 2016

Choose a reason for hiding this comment

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

Is it right to modify them like below ?

StreamHandle is only handled by the external shuffle service
RegisterDriver & HeatBeat is only handled by the external shuffle service while the cluster in the mesos deploy mode.

Copy link
Member

Choose a reason for hiding this comment

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

Best to ask the author where possible; use Blame to see who wrote these parts. @aarondav ?

@srowen
Copy link
Member

srowen commented Jul 24, 2016

I'm not clear if this matches the intent of the other docs. I'd close this unless we can get a clearer picture of the intent of these messages.

@srowen
Copy link
Member

srowen commented Jul 29, 2016

Hm, not sure what to do here. Unless we can get an informed double-check on the correctness of this, I think I'd just not do it.

* shuffle service. It returns a StreamHandle.
* - UploadBlock is only handled by the NettyBlockTransferService.
* - RegisterExecutor is only handled by the external shuffle service.
* - StreamHandle is only handled by the OneForOneBlockFetcher.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already covered in the documentation of OpenBlock, since StreamHandle is the reply to OpenBlock.

@vanzin
Copy link
Contributor

vanzin commented Aug 4, 2016

@f7753 I think just listing the message types here is not super useful. Yes, new messages were added and not mentioned in the documentation, but then adding just "foo is used by bar" doesn't really help in understanding the protocol at all.

Could you close this PR please?

@biaoma-ty biaoma-ty closed this Aug 8, 2016
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