Read-only profiles on readers that do not keep the session flag
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by reading the handling for read-only profiles and session flags, then trace how the client detects server read-only behavior and Aurora write forwarding. The issue names :session as the place to show the guarantee; inspect the related tests and add coverage for each case. Done means safe readers can open query sessions, the applicable guarantee is shown, and refusals report the server values.
Written by the indexing model from the issue text.
Description
Need
Follow-up of #421. On a reader that does not keep the session's read-only flag (seen on an AWS Aurora MySQL reader: transaction_read_only reads 0 right after it is set, innodb_read_only = 1), a profile that is itself read-only still cannot open query sessions, because datarig only trusts the session flag.
Plan
- Accept such a server as read-only only when the server itself refuses writes, which on Aurora also means write forwarding is off for the session;
innodb_read_onlyalone is not enough, since a reader can forward writes to the writer. - Show which guarantee applies in
:session. - A test for each case; until then the refusal names the values the server returned.
- Dominant language
- Rust
- Stars
- 166
- Forks
- 8
- Avg merge
- 4h 24m
- Merged PRs (30d)
- 291
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DokaDev/datarig
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
DokaDev/datarig#544 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
tests
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pop-os/cosmic-applets#1641 ·
Maintainers usually reply within 3 days