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 nodestate remove for diagnostic infos #2450

Merged
merged 4 commits into from
Jan 5, 2024
Merged

Fix nodestate remove for diagnostic infos #2450

merged 4 commits into from
Jan 5, 2024

Conversation

mregen
Copy link
Contributor

@mregen mregen commented Jan 4, 2024

Proposed changes

Issue:

Fix:

  • First try to remove node, only then try to remove the reference to the target node.

Repro:

  • connect/disconnect to the server with diagnostics enabled. Check Diagnostic nodes for leaking references.

Related Issues

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply. You can also fill these out after creating the PR.

  • Bugfix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Test enhancement (non-breaking change to increase test coverage)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected, requires version increase of Nuget packages)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc.
  • I have signed the CLA.
  • I ran tests locally with my changes, all passed.
  • I fixed all failing tests in the CI pipelines.
  • I fixed all introduced issues with CodeQL and LGTM.
  • I have added tests that prove my fix is effective or that my feature works and increased code coverage.
  • I have added necessary documentation (if appropriate).
  • Any dependent changes have been merged and published in downstream modules.

@mregen mregen self-assigned this Jan 4, 2024
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (e49ae09) 45.56% compared to head (0f446c4) 53.73%.

Files Patch % Lines
Stack/Opc.Ua.Core/Stack/State/NodeState.cs 44.44% 1 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2450      +/-   ##
==========================================
+ Coverage   45.56%   53.73%   +8.16%     
==========================================
  Files         333      333              
  Lines       64341    64329      -12     
  Branches    13203    13200       -3     
==========================================
+ Hits        29320    34569    +5249     
+ Misses      31547    26000    -5547     
- Partials     3474     3760     +286     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mregen mregen marked this pull request as ready for review January 4, 2024 10:06
@mregen mregen merged commit 96233dc into master Jan 5, 2024
71 of 72 checks passed
@mregen mregen deleted the nodestate branch January 5, 2024 16:33
mregen added a commit that referenced this pull request Jan 12, 2024
revert fix for regression introduced by fix for #2343, apply fix in nodemanagers which do not invert the inverse property, so bidirectional references were not removed.
mregen added a commit that referenced this pull request Jan 15, 2024
revert fix for regression introduced by fix for #2343, apply fix in nodemanagers which do not invert the inverse property, so bidirectional references were not removed.
mregen added a commit that referenced this pull request Jan 17, 2024
revert fix for regression introduced by fix for #2343, apply fix in nodemanagers which do not invert the inverse property, so bidirectional references were not removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants