Skip to content

Conversation

yaauie
Copy link
Member

@yaauie yaauie commented Sep 17, 2025

Release notes

[rn: skip]

What does this PR do?

This is an internal no-net-change refactor to pull upward the use of the org.logstash.ackedqueue.Settings into the JRuby queue extension classes, pared off of the existing PR #18121.

Why is it important/What is the impact to the user?

There is no net change to the user.

The changes here underly code that is also going to need changes in @andsel 's current in-flight work. Paring it off as a separate PR unblocks his work.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files (and/or docker env variables)
  • [ ] I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

No net change. Rely on existing test coverage and usage.

Related issues

Use cases

Screenshots

Logs

The `ackedqueue.SettingsImpl` uses an _immutable_ builder, which makes
adding options cumbersome; each additional property added needs to modify
code from all existing options.

By introducing an api-internal temporary mutable builder, we can simplify
the process of creating an immutable copy that has a single component
modified.
@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify
Copy link
Contributor

mergify bot commented Sep 17, 2025

This pull request does not have a backport label. Could you fix it @yaauie? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

@yaauie yaauie changed the title Pq settings refactor use builder PQ settings refactor: propagate builder upward Sep 17, 2025
@yaauie yaauie requested a review from andsel September 17, 2025 17:08
Copy link
Contributor

@andsel andsel left a comment

Choose a reason for hiding this comment

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

The changes seems fine, I left a question regarding the need to use a MutableBuilder bridge class to collect field values.

LMK your thoughts about that.

@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@andsel andsel self-requested a review September 18, 2025 20:22
Copy link
Contributor

@andsel andsel left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@yaauie yaauie added the backport-skip Skip automated backport with mergify label Sep 19, 2025
@yaauie yaauie merged commit f321248 into elastic:main Sep 19, 2025
14 checks passed
@yaauie yaauie deleted the pq-settings-refactor-use-builder branch September 19, 2025 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-skip Skip automated backport with mergify

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants