-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Local file-based name resolver with SQLite + Update components-contrib to register Blob Storage v2 #7038
Conversation
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7038 +/- ##
==========================================
+ Coverage 65.01% 65.07% +0.05%
==========================================
Files 221 231 +10
Lines 20799 21060 +261
==========================================
+ Hits 13523 13704 +181
- Misses 6138 6214 +76
- Partials 1138 1142 +4
☔ View full report in Codecov by Sentry. |
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.
One thing, otherwise LGTM 👍
Could you add a simple service invocation integration test using SQLite?
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
The PR in contrib was merged so this is good to go!! 🚀
No, we should not use tests in the runtime to validate a component. There are some “ITs” for this component in components-contrib (implemented as unit tests because we don’t have an infra to do otherwise). We should add an infra in components-contrib to test nameresolvers, also for the other nameresolvers that don’t have a test (Consul) |
nr.AppPort: strconv.Itoa(a.runtimeConfig.appConnectionConfig.Port), | ||
nr.HostAddress: a.hostAddress, | ||
nr.AppID: a.runtimeConfig.id, | ||
resolverMetadata.Instance = nr.Instance{ |
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.
A small API change in contrib. Now properties such as address and port are passed in a strongly-typed struct rather than in a weakly-typed map.
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Integration tests seem to be consistently failing. I reran the tests 3 times. Are there known issues in master branch with integration tests? cc @JoshVanL |
Looks like the test that's failing is the reminders rebalancing, and it's failing consistently in this PR and also when I run it locally. It appears the issue is that placement table dissemination doesn't happen in time. It's really weird as this PR doesn't touch anything related to placement 😮 I am investigating |
The issue seems to be an unrelated bug introduced by a separate commit in components-contrib. I'm going to fix or revert that commit. --EDIT Fixed |
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
…b to register Blob Storage v2 (dapr#7038) * Added support for SQLite nameresolver Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Added temp replacement Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Use a strongly-typed Instance struct for name resolvers Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Removed mod replacement Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Some test fixes Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Updated pinned contrib Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Updated pinned components-contrib again Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Mod tidy Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> --------- Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Fixes #3256
Addresses a longstanding request (> 2 years!) to have an alternative name resolver component for local development, for situations where mDNS can't be used (and even in those situations, a local name resolver is more convenient for local development).
As discussed in dapr/components-contrib#1380, this is implemented with SQLite, which is fast and efficient.