Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
685dcaa1
Unverified
Commit
685dcaa1
authored
Feb 27, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 27, 2020
Browse files
Merge pull request #6935 from oranagra/ci_actions_latency
fix github actions failing latency test for active defrag - part 2
parents
c913be04
2f1a1c38
Changes
2
Hide whitespace changes
Inline
Side-by-side
.github/workflows/ci.yml
View file @
685dcaa1
...
...
@@ -12,9 +12,9 @@ jobs:
-
name
:
test
run
:
|
sudo apt-get install tcl8.5
./runtest --clients
1
--verbose
./runtest --clients
2
--verbose
test
-ubuntu-old
:
build
-ubuntu-old
:
runs-on
:
ubuntu-16.04
steps
:
-
uses
:
actions/checkout@v1
...
...
tests/unit/memefficiency.tcl
View file @
685dcaa1
...
...
@@ -60,6 +60,7 @@ start_server {tags {"defrag"}} {
r config set latency-monitor-threshold 5
r latency reset
r config set maxmemory 110mb
;
# prevent further eviction
(
not to fail the digest test
)
set digest
[
r debug digest
]
catch
{
r config set activedefrag yes
}
e
if
{
!
[
string match
{
DISABLED*
}
$e
]}
{
...
...
@@ -166,7 +167,7 @@ start_server {tags {"defrag"}} {
for
{
set j 0
}
{
$j
< 500000
}
{
incr j
}
{
$rd read
;
# Discard replies
}
assert
{
[
r dbsize
]
==
500010
}
assert
_equal
[
r dbsize
]
500010
# create some fragmentation
for
{
set j 0
}
{
$j
< 500000
}
{
incr j 2
}
{
...
...
@@ -175,7 +176,7 @@ start_server {tags {"defrag"}} {
for
{
set j 0
}
{
$j
< 500000
}
{
incr j 2
}
{
$rd read
;
# Discard replies
}
assert
{
[
r dbsize
]
==
250010
}
assert
_equal
[
r dbsize
]
250010
# start defrag
after 120
;
# serverCron only updates the info once in 100ms
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment