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 fallback option for session related scenarios #3083

Merged

Conversation

adikul30
Copy link
Contributor

@adikul30 adikul30 commented Oct 21, 2024

What this PR does / why we need it:

#3064 refactors the session management logic in ListView package. As a fallback option, if we still run into a state where the credentials are valid but we've not been able to get the listview into a ready state, we should restart the container. This will help customers not run into this state for an extended period of time.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Testing done:
Validated by QE.

Special notes for your reviewer:

Release note:

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 21, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 21, 2024
@adikul30 adikul30 force-pushed the topic/aditya/fallback-session branch 3 times, most recently from 8ff74cd to 3bdfb34 Compare October 24, 2024 21:08
@deepakkinni
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Oct 25, 2024
@adikul30 adikul30 force-pushed the topic/aditya/fallback-session branch 4 times, most recently from be12e4e to 8fbfe2c Compare October 28, 2024 17:06
@adikul30 adikul30 changed the title (wip) add fallback option for session related scenarios add fallback option for session related scenarios Oct 31, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 31, 2024
fallback is to restart the container
@adikul30 adikul30 force-pushed the topic/aditya/fallback-session branch from 8fbfe2c to 54f5c33 Compare October 31, 2024 17:49
@@ -256,10 +291,10 @@ func (l *ListViewImpl) SetListViewNotReady(ctx context.Context) {

func (l *ListViewImpl) connect() error {
log := logger.GetLogger(l.ctx)
log.Infof("waiting for lock before calling connect")
log.Debugf("waiting for lock before calling connect")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changing this to debug as the routine will call it every 30 seconds.

Copy link
Contributor

@deepakkinni deepakkinni left a comment

Choose a reason for hiding this comment

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

/approve

Copy link
Member

@divyenpatel divyenpatel left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 6, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adikul30, deepakkinni, divyenpatel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [adikul30,deepakkinni,divyenpatel]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 899fe31 into kubernetes-sigs:master Nov 6, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants