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

Slow EDC Contract Negotiation initiation #633

Closed
4 of 5 tasks
ds-jhartmann opened this issue May 13, 2024 · 5 comments
Closed
4 of 5 tasks

Slow EDC Contract Negotiation initiation #633

ds-jhartmann opened this issue May 13, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ds-jhartmann
Copy link
Contributor

ds-jhartmann commented May 13, 2024

AC

  • Investigation
  • Create reproducible environment to reproduce this behavior
  • Communication with EDC team +
  • Create a pbi when fix is known

Out of scope

  • Fix the issue

Description

  • When starting a IRS Job, the some contract negotiations take up to 5 Minutes. EDC logs state, that the contract negotiation had to be retried.
DEBUG 2024-05-13T17:07:46.586381097 DSP: Incoming ContractAgreementMessage for class org.eclipse.edc.connector.controlplane.contract.spi.types.negotiation.ContractNegotiation process: 5f66801f-3f03-4747-97be-9230d56b53a3
DEBUG 2024-05-13T17:07:46.955841716 Unauthorized: Presentation Query failed: HTTP 400, message: {"timestamp":"Mon, 13 May 2024 17:07:46 GMT","status":400,"message":"Presentation Query: The provided AccessToken could not be validated.","error":"BAD_REQUEST","path":"/api/v1.0.0/iatp/presentations/query"}
DEBUG 2024-05-13T17:07:46.955911915 Verification Failed: Unauthorized
DEBUG 2024-05-13T17:07:46.956305311 DSP: Service call failed: Unauthorized
DEBUG 2024-05-13T17:07:59.811349585 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #1 will not be attempted before 1790 ms.
DEBUG 2024-05-13T17:08:00.840535247 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #1 will not be attempted before 761 ms.
DEBUG 2024-05-13T17:08:18.204713212 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #2 will not be attempted before 3110 ms.
DEBUG 2024-05-13T17:08:19.237275085 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #2 will not be attempted before 2077 ms.
DEBUG 2024-05-13T17:08:20.265114603 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #2 will not be attempted before 1049 ms.
DEBUG 2024-05-13T17:08:21.292610626 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #2 will not be attempted before 22 ms.
DEBUG 2024-05-13T17:08:37.64111872 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 7485 ms.
DEBUG 2024-05-13T17:08:38.675749972 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 6451 ms.
DEBUG 2024-05-13T17:08:39.705201476 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 5421 ms.
DEBUG 2024-05-13T17:08:40.739961226 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 4387 ms.
DEBUG 2024-05-13T17:08:41.774839675 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 3352 ms.
DEBUG 2024-05-13T17:08:42.804002282 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 2323 ms.
DEBUG 2024-05-13T17:08:43.836331767 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 1290 ms.
DEBUG 2024-05-13T17:08:44.864593601 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #3 will not be attempted before 262 ms.
DEBUG 2024-05-13T17:09:01.191764612 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 15972 ms.
DEBUG 2024-05-13T17:09:02.226953748 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 14937 ms.
DEBUG 2024-05-13T17:09:03.258651418 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 13905 ms.
DEBUG 2024-05-13T17:09:04.293760454 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 12870 ms.
DEBUG 2024-05-13T17:09:05.327217407 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 11836 ms.
DEBUG 2024-05-13T17:09:06.357884487 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 10806 ms.
DEBUG 2024-05-13T17:09:07.389220961 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 9774 ms.
DEBUG 2024-05-13T17:09:08.434932986 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 8729 ms.
DEBUG 2024-05-13T17:09:09.470856009 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 7693 ms.
DEBUG 2024-05-13T17:09:10.502840471 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 6661 ms.
DEBUG 2024-05-13T17:09:11.541597066 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 5622 ms.
DEBUG 2024-05-13T17:09:12.572800036 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 4591 ms.
DEBUG 2024-05-13T17:09:13.611689829 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 3552 ms.
DEBUG 2024-05-13T17:09:14.643782891 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 2520 ms.
DEBUG 2024-05-13T17:09:15.675941951 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 1488 ms.
DEBUG 2024-05-13T17:09:16.712056069 Entity 5f66801f-3f03-4747-97be-9230d56b53a3 ContractNegotiation retry #4 will not be attempted before 451 ms.

Current behaviour

Expected behavior

Steps to reproduce the Bug

@github-project-automation github-project-automation bot moved this to inbox in IRS May 13, 2024
@mkanal mkanal added the bug Something isn't working label May 14, 2024
@mkanal mkanal moved this from inbox to backlog in IRS May 14, 2024
@mkanal mkanal moved this from backlog to next in IRS May 14, 2024
@dsmf dsmf moved this from next to wip in IRS May 15, 2024
@dsmf dsmf self-assigned this May 15, 2024
@dsmf
Copy link
Contributor

dsmf commented May 16, 2024

if the situation appears again it might be helpful to try out the experimental branch from #538 in order to (maybe) get more details in tombstones, see draft PR catenax-ng#870 of branch https://github.com/catenax-ng/tx-item-relationship-service/tree/538-propagate-exceptions-via-Either-and-addSuppressed

@dsmf
Copy link
Contributor

dsmf commented May 16, 2024

currently not reproducible

seems to have been fixed by #616 and #648, the cucumber tests run fast again:

@dsmf dsmf moved this from wip to test in IRS May 17, 2024
@dsmf
Copy link
Contributor

dsmf commented May 17, 2024

@ds-kgassner -> ready for test

@ds-kgassner
Copy link
Contributor

Last successful run took almost 30 min. It's less than 1,5 hour therefore its approved from my side.

@ds-jhartmann ds-jhartmann moved this from test to review in IRS May 27, 2024
@mkanal
Copy link
Contributor

mkanal commented Jun 5, 2024

LGFM. PO acceptance in behalf of @jzbmw

@mkanal mkanal closed this as completed Jun 5, 2024
@mkanal mkanal moved this from review to done in IRS Jun 5, 2024
ds-jhartmann pushed a commit to ds-jhartmann/item-relationship-service that referenced this issue Jun 13, 2024
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
Status: done
Development

No branches or pull requests

4 participants