-
Notifications
You must be signed in to change notification settings - Fork 78
3.10: Read from Followers (allow dirty read) #222
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #222 +/- ##
==========================================
- Coverage 99.23% 99.15% -0.08%
==========================================
Files 26 26
Lines 3770 3776 +6
==========================================
+ Hits 3741 3744 +3
- Misses 29 32 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it 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.
Do we need to make allow_dirty_read nullable? It seems like we can get away with just defaulting to False.
Thanks @joowani. I have updated the default value of the allow_dirty_read parameter to False. |
@@ -358,6 +359,8 @@ def execute( | |||
query will not make it into the RocksDB block cache if not already | |||
in there, thus leaving more room for the actual hot set. | |||
:type fill_block_cache: bool | |||
:param allow_dirty_read: Allow reads from followers in a cluster. | |||
:type allow_dirty_read: bool | None |
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.
nit: allow_dirty_read: bool
. Same for others.
Added
allow_dirty_read
optional parameter to methods for the following:GET /_api/document
)PUT /_api/document?onlyget=true
)POST /_api/cursor
)GET /_api/edges
)POST /_api/transaction/begin etc.
)https://github.com/arangodb/docs/blob/main/3.10/release-notes-api-changes310.md#read-from-followers