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

Fix/addnodes skip empty ip #328

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

vvhuang-ll
Copy link
Contributor

Solution:

  • Added validation to check if src or dst IP fields are non-empty before creating and adding nodes to the graph.
  • Ensured that no nodes are created when IPs are missing, preventing invalid graph entries.

Related Issue:
Fixes invalid node addition when IPs are empty in the FlowGraph implementation.
#327

Test plan:

  • Tested with valid src and dst IPs to ensure nodes are created as expected.
  • Verified no nodes are created for samples with empty src or dst IPs.
  • Tested mixed cases where either src or dst is empty, ensuring only valid nodes are added."

@CLAassistant
Copy link

CLAassistant commented Dec 10, 2024

CLA assistant check
All committers have signed the CLA.

@vvhuang-ll vvhuang-ll force-pushed the fix/addnodes-skip-empty-ip branch from fd160ef to 6e7a5d3 Compare December 10, 2024 09:35
…ing added to the graph, causing downstream errors or unnecessary node creation.
@vvhuang-ll vvhuang-ll force-pushed the fix/addnodes-skip-empty-ip branch from 6e7a5d3 to a0ab5b8 Compare December 10, 2024 10:12
@Lyt99
Copy link
Collaborator

Lyt99 commented Dec 11, 2024

LGTM, thanks for your contribution!

@Lyt99 Lyt99 merged commit bc19a8b into alibaba:main Dec 11, 2024
9 checks passed
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.

3 participants