Skip to content

HOCON substitution does not work (OutOfMemory) #2950

@KirillSleta

Description

@KirillSleta

When using a substitution in configuration to set the seed nodes in cluster the following result has been produced: all memory on a laptop is loaded by akka.net process (up to 9Gb in several minutes) and process is terminated after all

  • Akka.Net version I'm using - netcore branch https://github.com/akkadotnet/akka.net/tree/v1.3
  • windows 10 netstandart1.6
  • unit test to reproduce the issue:
    [Fact]
    public void Can_concatenate_substituted_unquoted_string_OOM()
    {
    var hocon = @"akka.cluster.name = rucluster
    akka.cluster.seed-nodes =[akka.tcp://${akka.cluster.name}@127.0.0.1:4053] ";
    Assert.Equal("[akka.tcp://rucluster@127.0.0.1:4053", ConfigurationFactory.ParseString(hocon).GetString("akka.cluster.seed-nodes"));
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions