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: Add an endpoint for returning the query limit configuration #6353

Merged
merged 5 commits into from
Oct 12, 2020

Conversation

jzaralim
Copy link
Contributor

@jzaralim jzaralim commented Oct 2, 2020

Description

This PR adds a new ksqlDB API endpoint for requesting specific configs. Currently, only the persistent query limit can be requested.

Fixes #6275

Testing done

Manually tested with:

 curl "http://localhost:8088/v1/configs"
{"configs":{"ksql.query.persistent.active.limit":20}}

 curl "http://localhost:8088/v1/configs?name=foo"
{"configs":{}}

 curl "http://localhost:8088/v1/configs?name=ksql.query.persistent.active.limit&name=foo"
{"configs":{"ksql.query.persistent.active.limit":20}}

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@jzaralim jzaralim requested a review from a team as a code owner October 2, 2020 21:37
Copy link
Member

@spena spena left a comment

Choose a reason for hiding this comment

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

LGTM

@spena spena requested a review from a team October 6, 2020 21:50
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

LGTM! I think there's probably corresponding documentation updates that need to be made though... 😉

Copy link
Member

@JimGalasyn JimGalasyn left a comment

Choose a reason for hiding this comment

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

LGTM!

@jzaralim jzaralim merged commit 84d202d into confluentinc:master Oct 12, 2020
@jzaralim jzaralim deleted the config-endpoint branch October 12, 2020 20:17
spena added a commit that referenced this pull request Oct 20, 2020
…tion (#6353)"

The alternative is to use `show properties`, which display all server properties
with defaults and passwor obfuscated.

This reverts commit 84d202d.
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.

feat: Add a ksqlDB API for returning the query limit configuration (and other configs)
4 participants