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

feat(relay): configurable db_open retry mechanism added and in driver #2384

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

sandeepnRES
Copy link
Contributor

@sandeepnRES sandeepnRES commented Apr 10, 2023

To manage concurrent accesses to a LevelDB instance so that protocols
don't fail because of temporary resource contention, added two env
variables in driver and config variables in relay to configure retry
mechanism while opening database:

  • Max number of retries
  • Backoff time in milli seconds.

Additionally upgraded go versions to v1.20 in publish workflows.

Copy link
Contributor

@jagpreetsinghsasan jagpreetsinghsasan left a comment

Choose a reason for hiding this comment

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

LGTM

@VRamakrishna
Copy link
Contributor

@sandeepnRES Add a bit more description to your initial comment: Go version upgrades, need for the retry logic (to manage concurrent accesses to a LevelDB instance so that protocols don't fail because of temporary resource contention.)

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@sandeepnRES On top of what Rama said I also highly recommend having a message body for your commit instead of just adding the details to the GitHub PR description.

The PR description is stored in the private databases of GitHub, the commit message body is stored in the git commit log which is public (so they are very different from each other even though the GUI of GitHub makes them feel like the same thing).

@sandeepnRES
Copy link
Contributor Author

sandeepnRES commented Apr 14, 2023

Hi @petermetz I've modified the the PR description as per Rama's comments, and also added same in commit message. But it seems PR is blocked because your have marked as request changes, so we need your approval or dismiss your review if it is addressed, in order to merge this PR. Can you please chose one of the option?

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@sandeepnRES Thank you for making those changes! LGTM

    To manage concurrent accesses to a LevelDB instance so that protocols
    don't fail because of temporary resource contention, added two env
    variables in driver and config variables in relay to configure retry
    mechanism while opening database:

    - Max number of retries
    - Backoff time in milli seconds.

    Additionally upgraded go versions to v1.20 in publish workflows.

Signed-off-by: Sandeep Nishad <[email protected]>
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.

4 participants