Skip to content

Improve output queue push locking and error message#1446

Merged
scottf merged 3 commits intomainfrom
queue-push-lock-tuning
Oct 6, 2025
Merged

Improve output queue push locking and error message#1446
scottf merged 3 commits intomainfrom
queue-push-lock-tuning

Conversation

@scottf
Copy link
Contributor

@scottf scottf commented Oct 3, 2025

  • More meaningful error message.
  • Tuning locking

scottf added 2 commits October 3, 2025 13:28
* More meaningful error message.
* Tuning locking
@scottf scottf marked this pull request as ready for review October 3, 2025 20:44
@scottf scottf changed the title Output queue is busy. Improve output queue push locking and error message Oct 3, 2025
@scottf scottf requested a review from MauriceVanVeen October 3, 2025 20:46
}

lockWasSuccessful = true;
if (editLock.tryLock(offerLockNanos, TimeUnit.NANOSECONDS)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove the need to track whether the lock was obtained manually. Just simpler.

Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

LGTM


// The trailing space is intentional as in "Output queue is full 5000"
String OUTPUT_QUEUE_IS_FULL = "Output queue is full ";
String OUTPUT_QUEUE_BUSY = "Output queue is busy ";
Copy link
Member

Choose a reason for hiding this comment

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

This value doesn't seem to be used in MessageQueue?

@scottf scottf merged commit 22a0aa5 into main Oct 6, 2025
4 checks passed
@scottf scottf deleted the queue-push-lock-tuning branch October 6, 2025 17:16
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.

2 participants