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(rest): make LockAndFetchHandler blocking queue's capacity configurable #4886

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

joaquinfelici
Copy link
Contributor

Related to #4885

@joaquinfelici joaquinfelici added ci:all-as Runs the builds for all application servers. ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds). labels Jan 8, 2025
@joaquinfelici joaquinfelici self-assigned this Jan 8, 2025
@joaquinfelici joaquinfelici force-pushed the 4885-LockAndFetchQSize branch 3 times, most recently from 23c3e23 to c052fd3 Compare January 15, 2025 14:11
throw new NumberFormatException("Parameter " + BLOCKING_QUEUE_CAPACITY_PARAM_NAME + " has to be greater than zero");
}
capacity = parsedCapacity;
} catch (NumberFormatException e) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will catch both exceptions thrown:

  • By Integer.parseInt() (if it's not parseable int).
  • By custom throw above in case it's <= 0.

@joaquinfelici joaquinfelici force-pushed the 4885-LockAndFetchQSize branch from c052fd3 to 39fb9de Compare January 16, 2025 09:53
@joaquinfelici joaquinfelici marked this pull request as ready for review January 16, 2025 09:55
Copy link
Member

@venetrius venetrius left a comment

Choose a reason for hiding this comment

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

👍 Nice! Looks good to me

@joaquinfelici joaquinfelici merged commit 6154d43 into master Jan 21, 2025
5 checks passed
@joaquinfelici joaquinfelici deleted the 4885-LockAndFetchQSize branch January 21, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:all-as Runs the builds for all application servers. ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants