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 retrying logic #480

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Fix retrying logic #480

merged 1 commit into from
Feb 29, 2024

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Feb 28, 2024

It was refreshing on each of the calls. I think the before_sleep is the correct hook.

It was refreshing on each of the calls. I think the `before_sleep`
is the correct hook.
new_token = "new_jwt_token"
new_header = dict(TEST_HEADERS)
new_header["Authorization"] = f"Bearer {new_token}"

rest_mock.post(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This mock was never called.

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this is why I didn't catch it while validating

@Fokko
Copy link
Contributor Author

Fokko commented Feb 28, 2024

cc @anupam-saini

Copy link
Contributor

@anupam-saini anupam-saini left a comment

Choose a reason for hiding this comment

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

Thank you for catching this @Fokko

Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @Fokko for fixing this and thanks @anupam-saini for reviewing!

@HonahX HonahX merged commit 1f433a4 into apache:main Feb 29, 2024
6 checks passed
@Fokko Fokko deleted the fd-fix-2 branch February 29, 2024 11:11
himadripal pushed a commit to himadripal/iceberg-python that referenced this pull request Mar 1, 2024
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.

3 participants