-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing default query configuration #317
Fix missing default query configuration #317
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand the source of the fix - could you help me @Arkatufus ?
@@ -68,7 +67,7 @@ public class SqlReadJournal : | |||
_mat = Materializer.CreateSystemMaterializer( | |||
context: system, | |||
settings: ActorMaterializerSettings.Create(system), | |||
namePrefix: $"l2db-query-mat{configPath}"); | |||
namePrefix: $"l2db-query-mat-{Guid.NewGuid():N}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the fix here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was not the fix, the SqlReadJournal
is a bit different in that it creates a materializer, which none of our other read journal does.
It tries to create a single materializer by appending the "config path".
The problem is that "config path" were never being passed into the provider, the provider was created through reflection magic and none of the activator code passes in the "config path".
So I just remove that ambiguous code and replace it with a GUID
_system = system; | ||
_config = config; | ||
_configPath = configPath; | ||
_config = config.WithFallback(SqlPersistence.DefaultQueryConfiguration); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the actual fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, ok thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When using HOCON configuration, default query configuration were not injected properly
Changes