Skip to content

Comments

ARTEMIS-5863 use empty string for null values to match properties fil…#6201

Merged
clebertsuconic merged 1 commit intoapache:mainfrom
gtully:_ARTEMIS-5863
Jan 30, 2026
Merged

ARTEMIS-5863 use empty string for null values to match properties fil…#6201
clebertsuconic merged 1 commit intoapache:mainfrom
gtully:_ARTEMIS-5863

Conversation

@gtully
Copy link
Contributor

@gtully gtully commented Jan 29, 2026

…es conventions and retain keys that have null values

@gtully gtully requested a review from clebertsuconic January 29, 2026 12:39
}
assertFalse(properties.isEmpty());
assertTrue(properties.containsKey("acceptorConfigurations.test.params.useKQueue"));
assertEquals("", properties.get("acceptorConfigurations.test.params.useKQueue"));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should also parse the output, and make sure the value will be null on the TransportConnections.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it won't be null, it will be an empty string!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't currently have a way to set a null value, it looks like we may need that to keep this consistent, and export null values as the null string. and check for it when we set properties and replace it with the null object.

Copy link
Contributor

Choose a reason for hiding this comment

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

just thinking now... I guess we should settle with empty strings... otherwise things can get messy

what if you make it null on an existing configuration.

It's kind of difficult to mess with setting as it could mess with existing configurations. Hard to predict

…es conventions and retain keys that have null values
@clebertsuconic clebertsuconic merged commit bd2ea56 into apache:main Jan 30, 2026
6 checks passed
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