Skip to content

Comments

[SPARK-31344][CORE][3.0] Polish implementation of barrier() and allGather()#28283

Closed
Ngone51 wants to merge 1 commit intoapache:branch-3.0from
Ngone51:backport-3.0
Closed

[SPARK-31344][CORE][3.0] Polish implementation of barrier() and allGather()#28283
Ngone51 wants to merge 1 commit intoapache:branch-3.0from
Ngone51:backport-3.0

Conversation

@Ngone51
Copy link
Member

@Ngone51 Ngone51 commented Apr 21, 2020

What changes were proposed in this pull request?

Backport this in order to backport #28245 more smoothly later.

  1. Combine BarrierRequestToSync and AllGatherRequestToSync into RequestToSync, which is distinguished by RequestMethod type.

  2. Remove unnecessary Json serialization/deserialization

  3. Clean up some codes to make runBarrier() and BarrierCoordinator more general

  4. Remove unused imports.

Why are the changes needed?

To make codes simpler for better maintain in the future.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

This is pure code refactor, so should be covered by existed tests.

### What changes were proposed in this pull request?

1. Combine  `BarrierRequestToSync` and `AllGatherRequestToSync` into `RequestToSync`, which is distinguished by `RequestMethod` type.

2. Remove unnecessary Json serialization/deserialization

3. Clean up some codes to make runBarrier() and `BarrierCoordinator` more general

4. Remove unused imports.

### Why are the changes needed?

To make codes simpler for better maintain in the future.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

This is pure code refactor, so should be covered by existed tests.

Closes apache#28117 from Ngone51/refactor_barrier.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: Xingbo Jiang <xingbo.jiang@databricks.com>
@Ngone51
Copy link
Member Author

Ngone51 commented Apr 21, 2020

cc @jiangxb1987

@SparkQA
Copy link

SparkQA commented Apr 21, 2020

Test build #121579 has finished for PR 28283 at commit bdb1b6c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

Hi, @Ngone51 . Shall we use [3.0] instead of [BRANCH-3.0] because it's shorter?
For example,

- [BRANCH-3.0][SPARK-31344][CORE] Polish implementation of barrier() and allGather()
+ [SPARK-31344][CORE][3.0] Polish implementation of barrier() and allGather()

@Ngone51
Copy link
Member Author

Ngone51 commented Apr 22, 2020

Sure, I'll follow it.

@Ngone51 Ngone51 changed the title [BRANCH-3.0][SPARK-31344][CORE] Polish implementation of barrier() and allGather() [SPARK-31344][CORE][3.0] Polish implementation of barrier() and allGather() Apr 22, 2020
@dongjoon-hyun
Copy link
Member

cc @cloud-fan

@cloud-fan
Copy link
Contributor

thanks, merging to 3.0!

cloud-fan pushed a commit that referenced this pull request Apr 23, 2020
…ther()

### What changes were proposed in this pull request?

Backport this in order to backport #28245 more smoothly later.

1. Combine  `BarrierRequestToSync` and `AllGatherRequestToSync` into `RequestToSync`, which is distinguished by `RequestMethod` type.

2. Remove unnecessary Json serialization/deserialization

3. Clean up some codes to make runBarrier() and `BarrierCoordinator` more general

4. Remove unused imports.

### Why are the changes needed?

To make codes simpler for better maintain in the future.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

This is pure code refactor, so should be covered by existed tests.

Closes #28283 from Ngone51/backport-3.0.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@Ngone51
Copy link
Member Author

Ngone51 commented Apr 23, 2020

thanks all!

@cloud-fan cloud-fan closed this Apr 23, 2020
@dongjoon-hyun
Copy link
Member

Thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants