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

Instantiate Jedis client lazily and only once per JVM process #152

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

khorshuheng
Copy link
Collaborator

What this PR does / why we need it:
Currently the Jedis client is instantiated for each partition processed, and closed after use. In production, we noticed that there are some connection leak, which we suspect is due to connections that are not cleaned properly during retries. Instantiating Jedis client only once

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:


Signed-off-by: khorshuheng <khor.heng@gojek.com>
Copy link
Contributor

@keshav2211 keshav2211 left a comment

Choose a reason for hiding this comment

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

lgtm, lets keep monitoring connection errors closely

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: keshav2211, khorshuheng

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:

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

@khorshuheng khorshuheng merged commit 58ebe0f into feast-dev:master Jun 21, 2022
khorshuheng added a commit to khorshuheng/feast-spark that referenced this pull request Jun 29, 2022
khorshuheng added a commit to khorshuheng/feast-spark that referenced this pull request Jun 29, 2022
…feast-dev#152)"

This reverts commit 58ebe0f.

Signed-off-by: khorshuheng <khor.heng@gojek.com>
khorshuheng added a commit that referenced this pull request Jun 29, 2022
* Revert "Instantiate Jedis client lazily and only once per JVM process (#152)"

This reverts commit 58ebe0f.

Signed-off-by: khorshuheng <khor.heng@gojek.com>

* Revert "Retry connection failure while instantiating connection provider (#144)"

This reverts commit fcb80a0.

Signed-off-by: khorshuheng <khor.heng@gojek.com>

Co-authored-by: khorshuheng <khor.heng@gojek.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants