akka / akka/akka-core

Problem with ConfigFactory.defaultReference, user.dir

Open
#27,770 0 comments 0 reactions 0 assignees View on GitHub
1 - triaged
Dominant language
Scala
Stars
13.3k
Forks
3.5k
Avg merge
3d 18h
Merged PRs (30d)
13

Description

akka-cluster-metrics defines:
```
native-library-extract-folder = ${user.dir}"/native"
```

but as reported in https://discuss.lightbend.com/t/akka-cluster-metrics-native-library-extract-folder-refers-to-user-dir/5108 it seems like `${user.dir}` is not found when using `ConfigFactory.defaultReference`

defaultReference is documented as:
```
* Obtains the default reference configuration, which is currently created
* by merging all resources "reference.conf" found on the classpath and
* overriding the result with system properties. The returned reference
* configuration will already have substitutions resolved.
```

not sure if that means that system properties are also used for variable substitutions.

If system properties are not involved in the substitutions we should probably make reference.conf in akka-cluster-metrics self contained by defining a default "." for `user.dir` in that reference.conf.

Contributor guide

Open the contributing guide

Research direction

Inspect akka-cluster-metrics reference.conf and the ConfigFactory.defaultReference behavior described in its documentation. Determine whether system properties participate in substitutions such as ${user.dir}; done means the behavior is confirmed and the reference configuration or relevant coverage reflects the intended resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.