Fixed passing incorrect endtime value for module context#13822
Fixed passing incorrect endtime value for module context#13822sundb merged 12 commits intoredis:unstablefrom
Conversation
Co-authored-by: ShooterIT <wangyuancode@163.com>
Co-authored-by: ShooterIT <wangyuancode@163.com>
Co-authored-by: Yuan Wang <wangyuancode@163.com>
Co-authored-by: Yuan Wang <wangyuancode@163.com>
|
http://github.com/sundb/redis/actions/runs/13457985264/job/37606186414 |
@sundb are you going to push a another change to remove this validation? |
|
@YaacovHazan It has been deleted in this PR, I will merge this PR when daily ci passes. |
…was greater than 0
|
Because embedded string robj consumes 24 bits under 32-bit, this bin is almost the most frequently used bin, so the robj of strings can hardly be defragmented in this test, because its total number of robjs is equivalent to the total number is very small. je_get_defrag_hint() always returns no. after create 50000 strings aftert delete half of the strings
|
|
the CI for https://github.com/sundb/redis/actions/runs/13479710236 green. |
1) Fix a bug that passing an incorrect endtime to module. This bug was found by @ShooterIT. After redis#13814, all endtime will be monotonic time, and we should no longer convert it to ustime relative. Add assertions to prevent endtime from being much larger thatn the current time. 2) Fix a race in test `Reduce defrag CPU usage when module data can't be defragged` --------- Co-authored-by: ShooterIT <wangyuancode@163.com>
1) Fix a bug that passing an incorrect endtime to module. This bug was found by @ShooterIT. After redis#13814, all endtime will be monotonic time, and we should no longer convert it to ustime relative. Add assertions to prevent endtime from being much larger thatn the current time. 2) Fix a race in test `Reduce defrag CPU usage when module data can't be defragged` --------- Co-authored-by: ShooterIT <wangyuancode@163.com>
Fix a bug that passing an incorrect endtime to module.
This bug was found by @ShooterIT.
After Refactor of ActiveDefrag to reduce latencies #13814, all endtime will be monotonic time, and we should no longer convert it to ustime relative.
Add assertions to prevent endtime from being much larger thatn the current time.
Fix a race in test
Reduce defrag CPU usage when module data can't be defragged