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

Removed the jitter timeout from Mercury Transmitter #15717

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

msuchacz-cll
Copy link
Collaborator

@msuchacz-cll msuchacz-cll commented Dec 16, 2024

This reverts the issue with the jitter timeout on the Mercury Transmitter. It was causing the transmitter queue to get stuck and grow until we hit the limit.

@msuchacz-cll msuchacz-cll requested review from a team as code owners December 16, 2024 20:29
@msuchacz-cll msuchacz-cll added the build-publish Build and Publish image to SDLC label Dec 16, 2024
Copy link
Contributor

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

🎖️ No JIRA issue number found in: PR title, commit message, or branch name. Please include the issue ID in one of these.

Copy link
Contributor

github-actions bot commented Dec 16, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@msuchacz-cll msuchacz-cll force-pushed the feat/test-revert-of-wsrpc-bump branch from 6a39a5e to bd0296a Compare December 16, 2024 21:14
@msuchacz-cll msuchacz-cll reopened this Dec 16, 2024
@msuchacz-cll msuchacz-cll requested a review from a team as a code owner December 16, 2024 21:16
@msuchacz-cll msuchacz-cll changed the title Revert "bumping wsrpc (#15549)" Removed the jitter timeout from Mercury Transmitter Dec 16, 2024
@brunotm brunotm force-pushed the feat/test-revert-of-wsrpc-bump branch from 5e9a1f8 to 86954b0 Compare December 16, 2024 22:05
@samsondav samsondav enabled auto-merge December 16, 2024 22:34
@samsondav samsondav force-pushed the feat/test-revert-of-wsrpc-bump branch from 86954b0 to 41426de Compare December 16, 2024 22:35
samsondav
samsondav previously approved these changes Dec 16, 2024
Comment on lines 237 to 241
res, err := func(ctx context.Context) (*pb.TransmitResponse, error) {
ctx, cancel := context.WithTimeout(ctx, utils.WithJitter(s.transmitTimeout))
cancel()
return s.c.Transmit(ctx, t.Req)
}(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

The closure only existed to support this context, so it can be removed:

res, err := s.c.Transmit(ctx, t.Req)

@samsondav samsondav disabled auto-merge December 16, 2024 22:48
@jmank88
Copy link
Contributor

jmank88 commented Dec 16, 2024

It was causing the transmitter queue to get stuck and grow until we hit the limit.

That sounds like a bug in the transmitter, not with the callers. If this method is going to accept a context, then it must handle timeouts correctly, and if we have unusual expectations then they should be documented. Do we have a ticket to track the root cause?

@brunotm brunotm force-pushed the feat/test-revert-of-wsrpc-bump branch from 41426de to d202d06 Compare December 17, 2024 08:19
@brunotm brunotm force-pushed the feat/test-revert-of-wsrpc-bump branch from d202d06 to af4d1da Compare December 17, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-publish Build and Publish image to SDLC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants