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

Add retry attempts to refresh #1583

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

glazychev-art
Copy link
Contributor

@glazychev-art glazychev-art commented Feb 1, 2024

Description

This PR adds a refresh retry functionality.
If the refresh fails, it is attempted again after a few ms (200 ms by default)

Issue link

#1565

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@90f0c79). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1583   +/-   ##
=======================================
  Coverage        ?   67.30%           
=======================================
  Files           ?      261           
  Lines           ?    12380           
  Branches        ?        0           
=======================================
  Hits            ?     8332           
  Misses          ?     3525           
  Partials        ?      523           

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

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
@glazychev-art glazychev-art marked this pull request as ready for review February 5, 2024 08:25
)

// ClientBackward checks the connection on the way back
type ClientBackward struct {
Copy link
Member

Choose a reason for hiding this comment

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

Instead of creating a new chain element, I'd suggest updating the count chain element to support the backward counters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@denis-tingaikin
Copy link
Member

@edwarnicke I think we need to go with this patch; it solves most of the scenarios that I described here: #1565. and this patch allows us to quickly schedule a check for networkservicemesh/cmd-forwarder-vpp#664.

Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

Added one comment related to testing, other things look good.

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
nsmbot pushed a commit to networkservicemesh/cmd-csi-driver that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-dashboard-backend that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Feb 12, 2024
…k@main

PR link: networkservicemesh/sdk#1583

Commit: b1a3e26
Author: Artem Glazychev
Date: 2024-02-12 17:51:49 +0700
Message:
  - Add retry attempts to refresh (#1583)
* Add retry attempts to refresh

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* count chain element review comment

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
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.

2 participants