-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add new hexpired notification for HFE #2
base: unstable
Are you sure you want to change the base?
Conversation
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.
PR Summary
- Added 'hexpired' notification for hash field expirations
- Updated
tests/unit/pubsub.tcl
to include tests for 'hexpired' notifications - Tests cover active expiration, lazy expiration, and immediate expiration using h(p)expire(at) commands
- Ensured single 'hexpired' notification for multiple field expirations in
hmget
- Prevented redundant notifications when fields with TTL are deleted by commands like
hdel
1 file(s) reviewed, no comment(s)
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.
PR Summary
- Added
hexpired
notification for hash field expirations - New test cases for active, lazy, and immediate expirations
- Ensured single
hexpired
notification for multiple expirations inhmget
- Prevented notifications for TTL fields deleted by commands like
hdel
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.
PR Summary
- Added
hexpired
notification for hash field expirations - New tests for
hexpired
notification intests/unit/pubsub.tcl
- Ensure notifications for active, lazy, and immediate expirations
- Single notification for multiple field expirations in
hmget
- No notification for TTL field deletions without global DS update
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.
PR Summary
- Added 'hexpired' notification for hash field expiration
- New tests for 'hexpired' notification in
tests/unit/pubsub.tcl
- Covered active, lazy, and immediate expiration scenarios
- Improved notification handling for multiple field expirations in
hmget
- Ensured no notification for TTL field deletion without global DS update
1 file(s) reviewed, no comment(s)
1. send "hexpired" notification first and then "del" 2. add signalModifiedKey() in hashTypeGetValue() Co-authored-by: Ozan Tezcan <[email protected]> Co-authored-by: Moti Cohen <[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.
PR Summary
(updates since last review)
- Added
hexpired
notification for hash field expirations - Modified
lookupKeyByPattern
insrc/sort.c
forHFE_LAZY_EXPIRE
- Updated TTL values in
tests/integration/rdb.tcl
- Added test cases for
hexpired
intests/unit/moduleapi/hash.tcl
andscan.tcl
- Updated expiration logic and tests in
tests/unit/type/hash-field-expire.tcl
5 file(s) reviewed, no comment(s)
Co-authored-by: Ozan Tezcan <[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.
PR Summary
(updates since last review)
- Added tests for
hexpired
notification feature - Ensure notifications for active and lazy expiration of hash fields
- Verify single notification for multiple field expirations
- Check for
del
notification after all fields expire
1 file(s) reviewed, no comment(s)
Co-authored-by: Ozan Tezcan <[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.
PR Summary
(updates since last review)
- Added
hexpired
notification for hash field expiration - New tests for
hexpired
notification intests/unit/pubsub.tcl
- Scenarios covered: active expiration, lazy expiration, command-triggered expiration
- Single
hexpired
notification for multiple field expirations inhmget
- No notification for TTL field deletions without global DS update
1 file(s) reviewed, no comment(s)
References: redis#13329 |
When the hash field expired, we will send a new hexpired notification.
It mainly includes the following three cases:
h(p)expire(at) command
, the user will also get ahexpired
notification if the field expires during the command.Improvement
hexpired
notification.