Skip to content

proxyd: Don't hit Redis when the out of service interval is zero#2302

Merged
mslipper merged 1 commit intoethereum-optimism:developfrom
mslipper:bugfix/proxyd-zero-oos-interval
Mar 10, 2022
Merged

proxyd: Don't hit Redis when the out of service interval is zero#2302
mslipper merged 1 commit intoethereum-optimism:developfrom
mslipper:bugfix/proxyd-zero-oos-interval

Conversation

@mslipper
Copy link
Collaborator

@mslipper mslipper commented Mar 9, 2022

When the out of service interval is zero, proxyd will send a SETEX command to Redis with a zero expiry. This is technically an error, and causes messages like error setting backend unavailable ERR invalid expire time in setex to appear in the logs. Users won't notice the issue since proxyd can continue working when Redis returns an error, but we should clean this up nonetheless since these problems appear in our alerting.

@mslipper mslipper requested a review from Inphi as a code owner March 9, 2022 22:12
@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2022

🦋 Changeset detected

Latest commit: ae18cea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/proxyd Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

When the out of service interval is zero, `proxyd` will send a `SETEX` command to Redis with a zero expiry. This is technically an error, and causes messages like `error setting backend unavailable ERR invalid expire time in setex` to appear in the logs. Users won't notice the issue since `proxyd` can continue working when Redis returns an error, but we should clean this up nonetheless since these problems appear in our alerting.
@mslipper mslipper force-pushed the bugfix/proxyd-zero-oos-interval branch from 2c05d02 to ae18cea Compare March 9, 2022 22:14
@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2022

Codecov Report

Merging #2302 (ae18cea) into develop (779709f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2302   +/-   ##
========================================
  Coverage    80.08%   80.08%           
========================================
  Files           77       77           
  Lines         2460     2460           
  Branches       450      450           
========================================
  Hits          1970     1970           
  Misses         490      490           
Flag Coverage Δ
contracts 99.29% <ø> (ø)
core-utils 86.77% <ø> (ø)
data-transport-layer 49.72% <ø> (ø)
sdk 55.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 779709f...ae18cea. Read the comment docs.

@mslipper mslipper merged commit 028ed8e into ethereum-optimism:develop Mar 10, 2022
theochap added a commit that referenced this pull request Dec 10, 2025
## Description

Small PR to refactor the process method out of the engine actor. See
op-rs/kona#2271 (comment)
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