Skip to content

fix(c): ignore missing properties files in aeron_properties_file_load - #2088

Open
devansh-dek wants to merge 1 commit into
aeron-io:masterfrom
devansh-dek:fix/1124-ignore-missing-properties-file
Open

fix(c): ignore missing properties files in aeron_properties_file_load#2088
devansh-dek wants to merge 1 commit into
aeron-io:masterfrom
devansh-dek:fix/1124-ignore-missing-properties-file

Conversation

@devansh-dek

Copy link
Copy Markdown

Summary

The C media driver failed to start when a properties file path did not exist, while the Java driver silently skips missing files via SystemUtil.loadPropertiesFiles. This aligns C with Java by treating ENOENT from fopen as a no-op in aeron_properties_parse_file.

Other open failures (permissions, etc.) still return an error.

Test plan

  • Built properties_test target
  • ./binaries/properties_test --gtest_filter=DriverConfigurationTest.shouldIgnoreMissingPropertiesFile

Fixes #1124

Made with Cursor

Match the Java driver behaviour: a non-existent properties file is a
no-op rather than a fatal error. Other open failures still report an error.

Fixes aeron-io#1124
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.

[C] aeron_properties_load should not fail on non-existing file/resource

1 participant