Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Conversation

@VanderChen
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2021

Codecov Report

Merging #625 (18aaa21) into master (620df1a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #625   +/-   ##
=========================================
  Coverage     31.90%   31.90%           
  Complexity     1249     1249           
=========================================
  Files           525      525           
  Lines         13490    13490           
  Branches       1669     1669           
=========================================
  Hits           4304     4304           
  Misses         8598     8598           
  Partials        588      588           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 620df1a...18aaa21. Read the comment docs.

@xieus xieus requested review from cj-chung and xieus June 5, 2021 05:12
@xieus xieus added this to the Version 0.17.2021.07.30 milestone Jun 5, 2021

public UnicastGoalStateByte getUnicastGoalStateByte() {
UnicastGoalStateByte unicastGoalStateByte = new UnicastGoalStateByte();
unicastGoalStateByte.setNextTopic(this.topic);
Copy link
Contributor

Choose a reason for hiding this comment

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

@VanderChen We would need to setNextSubTopic as well, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This involves another question, whether use Pulsar worker to forward messages. This design was originally used to solve the multiple sending problem of multicastGS. DPM only needs to send GS once, and the worker will complete it multiple times. To be consistent, UnicastGS also uses the worker forwarding method.
i.e.
DPM(UniWorkerTopic, (NextTopic, GS)) -- (NextTopic, GS)--> Pulsar Worker(NextTopic, GS) --(GS)--> ACA
DPM(MultiWorkerTopic, (List, GS)) --(List, GS)--> Pulsar Worker(Traversal_NextTopic, GS) --(GS)--> ACA
Thus, considering compatibility with the current version and not sending more information to the worker, I did not add it. I'm not sure if this is the right thing to do.
There are two options for those containing SubTopic. One is not to use workers, this does not require the UnicastGoalStateByte class. The other is to deploy new Pulsar Workers. I prefer the former one.
i.e.
DPM((Topic, SubTopic), GS) --(GS)--> ACA

Copy link
Contributor

Choose a reason for hiding this comment

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

I am not quite sure what's problem here. Where is the Pulsar worker located? In the DPM (such as pulsarClient in the pulsar\DataPlaneClientImpl.java) or somewhere else?
Does your prefer way to eliminate Pulsar worker and rely on the GRPC's unicast and multicast goalstates?

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have this problem resolved? Let us discuss it in today's open-source meeting.

@xieus
Copy link
Contributor

xieus commented Jul 3, 2021

We need to move this PR forward @VanderChen

@xieus xieus changed the title Add UnicastGS and MultiGS based on GoalStateV2 Add UnicastGS and MulticastGS based on GoalStateV2 Aug 11, 2021
@xieus xieus added enhancement New feature or request feature feature development labels Aug 11, 2021
Copy link
Contributor

@xieus xieus left a comment

Choose a reason for hiding this comment

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

@VanderChen A few more comments.

List<String> sendGoalStates(List<UnicastGoalState> unicastGoalStates,
MulticastGoalState multicastGoalState) throws Exception;

// List<String> sendGoalStates(List<UnicastGoalStateV2> unicastGoalStates) throws Exception;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the commented line if not needed.


public UnicastGoalStateByte getUnicastGoalStateByte() {
UnicastGoalStateByte unicastGoalStateByte = new UnicastGoalStateByte();
unicastGoalStateByte.setNextTopic(this.topic);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have this problem resolved? Let us discuss it in today's open-source meeting.


public class MulticastGoalStateByte {
private List<String> nextTopics;
private List<String> nextSubTopics;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does adding this new field break any existing workflow?

@xieus
Copy link
Contributor

xieus commented Aug 11, 2021

There are two conflicting files:
services/data_plane_manager/src/main/java/com/futurewei/alcor/dataplane/service/impl/NeighborService.java
services/data_plane_manager/src/main/java/com/futurewei/alcor/dataplane/service/impl/RouterService.java

@lgtm-com
Copy link

lgtm-com bot commented Sep 14, 2021

This pull request introduces 7 alerts when merging 3ca09c0 into 2cc0269 - view on LGTM.com

new alerts:

  • 7 for Useless null check

@lgtm-com
Copy link

lgtm-com bot commented Sep 22, 2021

This pull request introduces 8 alerts when merging 9b6bc7f into 016b3e9 - view on LGTM.com

new alerts:

  • 7 for Useless null check
  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Sep 29, 2021

This pull request introduces 8 alerts when merging 14a4738 into 016b3e9 - view on LGTM.com

new alerts:

  • 7 for Useless null check
  • 1 for Container contents are never accessed

@lgtm-com
Copy link

lgtm-com bot commented Oct 16, 2021

This pull request introduces 8 alerts when merging aa76721 into 91af57e - view on LGTM.com

new alerts:

  • 7 for Useless null check
  • 1 for Container contents are never accessed

@VanderChen VanderChen requested a review from xieus October 17, 2021 07:53
@VanderChen
Copy link
Contributor Author

All tests in Jenkins have passed

Copy link
Contributor

@cj-chung cj-chung left a comment

Choose a reason for hiding this comment

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

LGTM.

Those overloaded functions for goalstateV2 under dataplane/service/impl/*Service.java may not needed anymore after we have new version of DPM for goalstateV2 and NCM, but for now we can merge it first for goalstateV1 and goalstateV2 compatibility.

mq.type=pulsar
#####Pulsar configuration#####
pulsar.url=pulsar://localhost:6650
pulsar.url=pulsar://192.168.1.105:6650
Copy link
Contributor

Choose a reason for hiding this comment

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

@VanderChen It is the best practice not checking in any configuration specific to a dev environment. Please consider changing it in your next PR #695.

@xieus xieus changed the title Add UnicastGS and MulticastGS based on GoalStateV2 [Data-Plane Mgr] Support GoalStateV2 for UnicastGS and MulticastGS Oct 20, 2021
@xieus xieus self-requested a review October 20, 2021 21:35
@xieus xieus merged commit 50c6563 into futurewei-cloud:master Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request feature feature development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants