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 <[email protected]>
Co-authored-by: Yuan Wang <[email protected]>
Co-authored-by: Yuan Wang <[email protected]>
|
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
|
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 <[email protected]>
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 <[email protected]>
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