-
Notifications
You must be signed in to change notification settings - Fork 111
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
[CLIENT-2645] Add ttl option for default write policies in client config #536
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## stage #536 +/- ##
==========================================
- Coverage 81.06% 81.05% -0.01%
==========================================
Files 98 98
Lines 14828 14833 +5
==========================================
+ Hits 12020 12023 +3
- Misses 2808 2810 +2
☔ 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.
Nice job with all the tests. Just a few questions. Mainly for my understanding, like why does batch operate need a new ttl argument if ttl is already a member of the batch write policy?
@@ -442,6 +443,7 @@ class Query: | |||
def where(self, predicate: tuple, ctx: list = ...) -> None: ... | |||
|
|||
class Scan: | |||
ttl: int |
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 queries need this too?
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.
The type stubs already have aerospike.Query.ttl
Co-authored-by: dwelch-spike <[email protected]>
I fixed an extra doc error. Setting |
dee00ae
to
d6dd722
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.
Assuming tests pass this LGTM
Build wheels all passes: https://github.com/aerospike/aerospike-client-python/actions/runs/6792350139
Valgrind
This branch: https://github.com/aerospike/aerospike-client-python/actions/runs/6792351521/job/18465486663
Stage branch: https://github.com/aerospike/aerospike-client-python/actions/runs/6793233371/job/18467761697
No extra memory errors or leaks caused by these changes
C client API changes: aerospike/aerospike-client-c@600d2d2
Documentation:
aerospike.Scan.ttl
properly for some reason...Extra changes:
batch_operate()
now takes in an optional ttl parameter instead of taking ttl through a batch policy. Documentation changesttl
option. Documentationttl
option toaerospike.Scan
class. Documentation