Skip to content

Solve issues with active defrag test failing on fast machines#11598

Merged
oranagra merged 1 commit intoredis:unstablefrom
oranagra:fix-defrag-test-race
Dec 9, 2022
Merged

Solve issues with active defrag test failing on fast machines#11598
oranagra merged 1 commit intoredis:unstablefrom
oranagra:fix-defrag-test-race

Conversation

@oranagra
Copy link
Member

@oranagra oranagra commented Dec 8, 2022

We do defrag during AOF loading, but aim to detect fragmentation only once a second, so this test aims to slow down the AOF loading and mimic loading of a large file.
On fast machines the sleep, plus the actual work we did was insufficient making it sleep longer so the test won't fail.

The error we used to get is this one:
Expected 0 > 100000 (context: type eval line 106 cmd {assert {$hits > 100000}} proc ::test)

We do defrag during AOF loading, but aim to detect fragmentation only
once a second, so this test aims to slow down the AOF loading and mimic
loading of a large file.
On fast machines the sleep, plus the actual work we did was insufficient
making it sleep longer so the test won't fail.

The error we used to get is this one:
Expected 0 > 100000 (context: type eval line 106 cmd {assert {$hits > 100000}} proc ::test)
@oranagra oranagra linked an issue Dec 8, 2022 that may be closed by this pull request
@oranagra oranagra requested a review from yossigo December 8, 2022 10:26
@oranagra oranagra merged commit 528bb11 into redis:unstable Dec 9, 2022
@oranagra oranagra deleted the fix-defrag-test-race branch December 9, 2022 11:33
madolson pushed a commit to madolson/redis that referenced this pull request Apr 19, 2023
…11598)

We do defrag during AOF loading, but aim to detect fragmentation only
once a second, so this test aims to slow down the AOF loading and mimic
loading of a large file.
On fast machines the sleep, plus the actual work we did was insufficient
making it sleep longer so the test won't fail.

The error we used to get is this one:
Expected 0 > 100000 (context: type eval line 106 cmd {assert {$hits > 100000}} proc ::test)
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
…11598)

We do defrag during AOF loading, but aim to detect fragmentation only
once a second, so this test aims to slow down the AOF loading and mimic
loading of a large file.
On fast machines the sleep, plus the actual work we did was insufficient
making it sleep longer so the test won't fail.

The error we used to get is this one:
Expected 0 > 100000 (context: type eval line 106 cmd {assert {$hits > 100000}} proc ::test)
sundb pushed a commit to sundb/redis that referenced this pull request Jan 14, 2025
…11598)

We do defrag during AOF loading, but aim to detect fragmentation only
once a second, so this test aims to slow down the AOF loading and mimic
loading of a large file.
On fast machines the sleep, plus the actual work we did was insufficient
making it sleep longer so the test won't fail.

The error we used to get is this one:
Expected 0 > 100000 (context: type eval line 106 cmd {assert {$hits > 100000}} proc ::test)
sundb pushed a commit that referenced this pull request Jan 15, 2025
We do defrag during AOF loading, but aim to detect fragmentation only
once a second, so this test aims to slow down the AOF loading and mimic
loading of a large file.
On fast machines the sleep, plus the actual work we did was insufficient
making it sleep longer so the test won't fail.

The error we used to get is this one:
Expected 0 > 100000 (context: type eval line 106 cmd {assert {$hits > 100000}} proc ::test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] Ubuntu 22.04 , gcc 11.2.0 , Active defrag test failed

2 participants