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: send correlation id as process id in the transfer messages #3387

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Aug 28, 2023

What this PR changes/adds

Send correlationId and not transfer process id in the protocol messages

Why it does that

fix bug

Further notes

  • I enhanced the e2e transfer tests by making the TP going to COMPLETED, this was done adding the control-plane-api and control-plane-api-client to the runtimes
  • question 1: given that we have this control-plane to data-plane communication I wonder if we need the statusChecker at all. From an hi level perspective it is correct that the data plane has the knowledge about the transfer completion, this will download some responsibilities from the control-plane
  • question 2 Currently as specified in consumer TransferProcesses not Transitioning to Completed State #3334 not everyone is aware that there's this communication layer between CP and DP so I was wondering if it would be better to get rid of the NoopTransferProcessClient to clearly state that a DP needs to communicate with the CP, otherwise it should not start.

thoughts on these 2?

Linked Issue(s)

Closes #3377
Closes #3334

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added the bug Something isn't working label Aug 28, 2023
@ndr-brt ndr-brt force-pushed the 3334-disable-checker-for-trackable-transfers branch from a79ed8f to 224eaf9 Compare August 28, 2023 10:05
@wolf4ood
Copy link
Contributor

@ndr-brt

IMHO

  1. I would be inclined to remove the status checker since it require client side polling, which can slowdown the client statemachine. Since the provider dataplane knows when the transfer is finished it make sense to propagate it directly via TransferCompletionMessage

  2. Probably it make sense to enforce this communication in the runtime without providing a noop one.

@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2023

Codecov Report

Patch coverage: 66.66% and no project coverage change.

Comparison is base (149710a) 72.07% compared to head (dc118f6) 72.07%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3387   +/-   ##
=======================================
  Coverage   72.07%   72.07%           
=======================================
  Files         828      828           
  Lines       16795    16796    +1     
  Branches      954      954           
=======================================
+ Hits        12105    12106    +1     
  Misses       4280     4280           
  Partials      410      410           
Files Changed Coverage Δ
...r/transfer/process/TransferProcessManagerImpl.java 92.06% <66.66%> (-0.55%) ⬇️

... and 1 file with indirect coverage changes

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

@ndr-brt ndr-brt force-pushed the 3334-disable-checker-for-trackable-transfers branch from 108e9e2 to dc118f6 Compare August 28, 2023 12:15
@ndr-brt ndr-brt merged commit 418f1b7 into eclipse-edc:main Aug 31, 2023
17 checks passed
@ndr-brt ndr-brt deleted the 3334-disable-checker-for-trackable-transfers branch August 31, 2023 11:57
ndkrimbacher pushed a commit to nexyo-io/DataSpaceConnector that referenced this pull request Oct 4, 2023
…pse-edc#3387)

* fix: send correlation id as process id in the transfer messages

* Break lease on iteration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants