Skip to content

Render SubnetGroups as JSON in system_views.settings - #5029

Closed
frankgh wants to merge 1 commit into
apache:trunkfrom
frankgh:CASSANDRA-21579
Closed

Render SubnetGroups as JSON in system_views.settings#5029
frankgh wants to merge 1 commit into
apache:trunkfrom
frankgh:CASSANDRA-21579

Conversation

@frankgh

@frankgh frankgh commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

SubnetGroups.Group has no getters, so a Set (e.g. the *_error_reporting_exclusions settings) fails Jackson bean introspection and SettingsTable silently falls back to the legacy toString() format while every other collection renders JSON. This fork ships those settings populated by default, so the table always showed a mix of JSON and non-JSON values. Add @jsonvalue to Group so it serializes as its CIDR string.

patch by Francisco Guerrero; reviewed by TBD for CASSANDRA-21579

@smiklosovic
smiklosovic self-requested a review August 17, 2026 08:56
@smiklosovic

Copy link
Copy Markdown
Contributor

would be nice to add a test for each value of a key that it is a valid json

SubnetGroups.Group has no getters, so a Set<Group> (e.g. the
*_error_reporting_exclusions settings) fails Jackson bean introspection
and SettingsTable silently falls back to the legacy toString() format
while every other collection renders JSON. This fork ships those
settings populated by default, so the table always showed a mix of JSON
and non-JSON values. Add @jsonvalue to Group so it serializes as its
CIDR string.

patch by Francisco Guerrero; reviewed by Stefan Miklosovic for CASSANDRA-21579
@frankgh

frankgh commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Closed via 29b0bec

@frankgh frankgh closed this Aug 26, 2026
@frankgh
frankgh deleted the CASSANDRA-21579 branch August 26, 2026 23:37
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