-
Notifications
You must be signed in to change notification settings - Fork 21
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
Make flowmachine table cache owner #5189
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5189 +/- ##
==========================================
- Coverage 93.93% 93.93% -0.01%
==========================================
Files 276 276
Lines 10640 10646 +6
Branches 1271 1274 +3
==========================================
+ Hits 9995 10000 +5
Misses 518 518
- Partials 127 128 +1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
9c47782
to
8843c73
Compare
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.
Can also remove the FLOWMACHINE_FLOWDB_USER
env from 'development_environment', and the secret from secrets-quickstart.sh
.
@@ -199,7 +193,7 @@ psql --dbname="$POSTGRES_DB" -c " | |||
obj record; |
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.
Presumably this trigger is no longer required?
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.
I've kept it in to allow for the possibility of tables getting created thru routes other than flowmachine that we'd still want to be managed. That said, I'm not sure there's really an eventuality where that arises and they're also in the cache table.
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.
I'm not sure we would necessarily want to change ownership of tables created through routes other than flowmachine, since the ownership change is specifically so that all flowmachine instances can access flowmachine-generated cache tables. Without an obvious situation where this might occur, I think it's just as plausible that we'd want the opposite - that tables created through some unforeseen route should remain owned by the user that created them.
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.
Yeah, I agree.
Need to keep these, because flowmachine still has a configurable username, it just happens to be |
Ah, I see. I suppose the question is: would we ever want the flowmachine container to use a postgres user other than But for a standard deployment I think we'd always want the flowmachine container to use the |
e4cde97
to
6b27283
Compare
Co-Authored-By: James Harrison <[email protected]>
Co-Authored-By: James Harrison <[email protected]>
I've been thinking about the exception-catching business, and whether catching
(i.e. if the query is still in a blocking state when it should have finished, but no |
Co-Authored-By: James Harrison <[email protected]>
Co-Authored-By: James Harrison <[email protected]>
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.
👍
Closes #4714
I have:
Description
flowmachine
user always namedflowmachine
(you can create other users, but there shall always be aflowmachine
userflowmachine
.