Replies: 3 comments 5 replies
-
What does your HOCON / Akka.Hosting look like @woodpk ? |
Beta Was this translation helpful? Give feedback.
3 replies
-
This looks like a bug to me, I'll work on it as soon as I can |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for looking into the possible bug. I was wondering if you had found anything?
…-Patrick
________________________________
From: Gregorius Soedharmo ***@***.***>
Sent: Friday, June 9, 2023 07:51 PM
To: akkadotnet/akka.net ***@***.***>
Cc: Patrick Wood ***@***.***>; Mention ***@***.***>
Subject: Re: [akkadotnet/akka.net] Akka.Persistence.Sql.Query GetReadJournal (Discussion #6789)
This looks like a bug to me, I'll work on it as soon as I can
—
Reply to this email directly, view it on GitHub<#6789 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALS6BUG3I6A5FI5Z5L6YWJTXKOZGVANCNFSM6AAAAAAZAPEK34>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Community.
I'm needing some help with what I assume is pretty basic functioning for this package. I am unable to get a read journal for the new Akka.Persistence.Sql.Query SqlReadJournal.
Using the GetReadJournal method from the provided SqlReadJournalProvider, I am getting the exception: Akka.Configuration.ConfigurationException: The configuration property akka.persistence.journal.sql.table-mapping is null or empty.
This is somewhat confusing because when looking at the config in debug mode, the table-mapping property is set to default, but when the process attempts to actually run through config.GetString("table-mapping") in the JournalTableConfig class, it returns a null value.
When I manually do a Config.GetString, but use the full path ("akka.persistence.journal.sql.table-mapping"), it correctly returns the 'default' value, but the JournalTableConfig class is using 'table-mapping' as its search string, which is returning null when parsing the entire config hocon tree.
As a result I am not able to instantiate a read journal.
For writes, it seems this package is working fine as I am able to write to a test database with the default table configuration.
So, I know others have been able to get persistence query to work and I would love to know how. Thanks for your help and attention.
Stacktrace is:
Akka.Configuration.ConfigurationException: The configuration property akka.persistence.journal.sql.table-mapping is null or empty
at Akka.Persistence.Sql.Config.JournalTableConfig..ctor(Config config)
at Akka.Persistence.Sql.Config.ReadJournalConfig..ctor(Config config)
at Akka.Persistence.Sql.Query.SqlReadJournal..ctor(ExtendedActorSystem system, Config config, String configPath)
at Akka.Persistence.Sql.Query.SqlReadJournalProvider.GetReadJournal()
at PRCS.WorkItems.Tests.TestConfig.<>c__DisplayClass4_0.b__0(ActorSystem system, IActorRegistry registry) in D:\PRCS.WorkItems\PRCS.WorkItems.Tests\Configuration.cs:line 89
at Akka.Hosting.AkkaConfigurationBuilder.<>c__DisplayClass25_0.g__Starter|0(ActorSystem f, IActorRegistry registry)
at Akka.Hosting.AkkaConfigurationBuilder.StartAsync(ActorSystem sys)
Beta Was this translation helpful? Give feedback.
All reactions