You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!!! WARNING The following tests failed:
*** [err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
Cleanup: may take some time... OK
make[1]: *** [test] Error 1
make[1]: Leaving directory `/usr/src/redis-2.8.17/src'
make: *** [test] Error 2
yesterday I was having exceptions with replication but I didn't log the errors, but they are not happening again, which is odd because I'm just repeating the same tests without modifying anything.
For timing issues, one test isn't very representative. Did you try running them 5-10 times? Is there anything unusual about your machine (very small memory, very slow, shared, overloaded, etc)? Some of the tests are based on timing, so if the machine can't deliver results in time then tests can't complete properly. (you can manually edit some of the tests to increase the timeout waiting)
Here is the source of Dockerfile which fails. Please note you should created an authorized_keys file in the same directory as the Dockerfile. The ONBUILD directive from server-template:0.0.6 willy try to copy it into /root/.ssh/authorized_keys.
FROM optobee/server-template:0.0.6
MAINTAINER Ovanes Markaryan "[email protected]"
ENV OPTOBEE_VM_REFRESHED 2015-01-06
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sf /bin/true /sbin/initctl
RUN [ "apt-get", "update" ]
RUN [ "apt-get", "upgrade", "-y" ]
RUN [ "apt-get", "install", "-y", "wget", "tcl"]
RUN [ "pip", "install", "virtualenv" ]
RUN cp /sbin/initctl.distrib /sbin/initctl
RUN dpkg-divert --local --remove /sbin/initctl
# download redis cluster 3.0.0-rc1 (currently latest)
RUN mkdir -p /root/redis-source
WORKDIR /root/redis-source
RUN wget https://github.com/antirez/redis/archive/3.0.0-rc1.tar.gz
RUN tar xfz 3.0.0-rc1.tar.gz
WORKDIR /root/redis-source/redis-3.0.0-rc1
# the next directive creates an /opt/redis directory and exports it as a separate volume
VOLUME /opt/redis
ENV PREFIX /opt/redis
RUN make
RUN make test
RUN make install
RUN cp src/redis-trib.rb /opt/redis/bin
# Clean up APT when done.
RUN apt-get clean && rm -rf /tmp/* /var/tmp/*
Just run docker build . in the directory containing Dockerfile and authorized_keys.
Using 2.8.19 built for armel on Debian, also seeing test failures, generally get one of the two outputs below. Machine is a single-core ARM with 256MB RAM. Thanks for being responsive to even minor issues!
./runtest --single integration/replication-psync
** SLOW COMPUTER ** Using a single client to avoid false positives.
Cleanup: may take some time... OK
Starting test server at port 11111
[ready]: 5924
Testing integration/replication-psync
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[ok]: Test replication partial resync: ok psync
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[ok]: Test replication partial resync: no backlog
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[ok]: Test replication partial resync: ok after delay
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[ok]: Test replication partial resync: backlog expired
[1/1 done]: integration/replication-psync (63 seconds)
The End
./runtest --single integration/replication-psync
** SLOW COMPUTER ** Using a single client to avoid false positives.
Cleanup: may take some time... OK
Starting test server at port 11111
[ready]: 7153
Testing integration/replication-psync
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[ok]: Test replication partial resync: ok psync
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[err]: Test replication partial resync: no backlog in tests/integration/replication-psync.tcl
Expected condition '[s -1 sync_partial_err] > 0' to be true ([s -1 sync_partial_err] > 0)
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[ok]: Test replication partial resync: ok after delay
[ok]: Slave should be able to synchronize with the master
[err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
[ok]: Test replication partial resync: backlog expired
[1/1 done]: integration/replication-psync (63 seconds)
The End
I'm going to go ahead and call that an "unsupported configuration." 🌻
It's good you found the --single option, but the Redis test suite still relies on reasonable timing and memory limits to be available for the tests. The Redis tests are very thorough and heavy duty. But—just because the Redis test suite fails, it doesn't mean Redis isn't working on your platform.
You can also review any logs left over in the tests/tmp/* directories. You may have to edit the test code to not clean up after tests though (see: tests/instances.tcl:cleanup(); if the test suite completes, it'll delete all logs, but you can delete the rm -rf to keep logs around).
The failure is just a false positive happening randomly, the latest 3.2 stable release still has this problem (which is not a problem when you use Redis, it's just the test). Next 3.2 release, due in very short time, will have the test fixed. Thanks.
Activity
badboy commentedon Nov 6, 2014
Looks like a timing issue again. Does this pop up constantly?
jfhenriques commentedon Nov 6, 2014
Repeated the tests again and:
yesterday I was having exceptions with replication but I didn't log the errors, but they are not happening again, which is odd because I'm just repeating the same tests without modifying anything.
mattsta commentedon Nov 7, 2014
Repeated the tests again
For timing issues, one test isn't very representative. Did you try running them 5-10 times? Is there anything unusual about your machine (very small memory, very slow, shared, overloaded, etc)? Some of the tests are based on timing, so if the machine can't deliver results in time then tests can't complete properly. (you can manually edit some of the tests to increase the timeout waiting)
There's a similar issue at https://github.com/antirez/redis/issues/944 too.
vinhvo81 commentedon Dec 14, 2014
I have also met this problem. I increased the RAM up and then this error does not happen again.
antirez commentedon Dec 16, 2014
All timing issues. Should be fixed, is a time consuming task. From time to time I try to fix a couple that show up in the continuous integration...
ovanes commentedon Jan 6, 2015
Tried to build redis cluster in a docker container (twice). These tests seem to repeatedly fail:
Here is the source of Dockerfile which fails. Please note you should created an authorized_keys file in the same directory as the Dockerfile. The ONBUILD directive from server-template:0.0.6 willy try to copy it into /root/.ssh/authorized_keys.
Just run
docker build .in the directory containingDockerfileandauthorized_keys.mdevs5531 commentedon Jan 29, 2015
Using 2.8.19 built for armel on Debian, also seeing test failures, generally get one of the two outputs below. Machine is a single-core ARM with 256MB RAM. Thanks for being responsive to even minor issues!
mattsta commentedon Jan 29, 2015
I'm going to go ahead and call that an "unsupported configuration." 🌻
It's good you found the
--singleoption, but the Redis test suite still relies on reasonable timing and memory limits to be available for the tests. The Redis tests are very thorough and heavy duty. But—just because the Redis test suite fails, it doesn't mean Redis isn't working on your platform.You can also review any logs left over in the
tests/tmp/*directories. You may have to edit the test code to not clean up after tests though (see:tests/instances.tcl:cleanup(); if the test suite completes, it'll delete all logs, but you can delete therm -rfto keep logs around).mdevs5531 commentedon Jan 30, 2015
Think that's fair, although besides those test failures Redis has been a champ on the platform so far.
Thanks. Is there value to you guys in updating this thread with any further debugging on the issue or is it too much of an edge case?
kok2016 commentedon Mar 13, 2016
I also met this problem, I have try again for several times, the computer configuration is not low。Redis version is 3.0.7,ubuntu is 15.10
lamby commentedon Jul 28, 2016
I can reproduce this even with taskset -c 1
efkan commentedon Oct 1, 2016
I've encountered with some error. One of these the message below:
*** [err]: Detect write load to master in tests/integration/replication-psync.tclMy virtual server is Ubuntu x64. Its configuration had been as follows:
vCPU : 2 cores with 50% CPU running high limit.
RAM : 384 MB
HDD : 3.5 GB
Then I increased the server configuration as follows:
vCPU : 2 cores with no CPU running high limit.
RAM : 512 MB
HDD : 3.5 GB
And now I can see the following message:
\o/ All tests passed without errors!lamby commentedon Oct 1, 2016
Hm? Surely this could just be coincidence given this is clearly non-deterministic...
efkan commentedon Oct 1, 2016
just want to say that; You're right @lamby .
I tried again and I got error again.
jonathanleang commentedon Mar 24, 2017
I can reproduce this bug with Linode $5 instance with 1G Ram.
vedro-compota commentedon May 15, 2017
I have the same bug in ubuntu 16.
antirez commentedon May 15, 2017
Hello, if you test it with the latest Redis
3.2branch commit, it should be ok. Thanks.vedro-compota commentedon May 15, 2017
@mattsta thank you for your advice:
-- it helped me.
@antirez thanks for answer! Second attempt of
make testwas finished successfully.I've loaded it by:
curl -O http://download.redis.io/redis-stable.tar.gzantirez commentedon May 15, 2017
The failure is just a false positive happening randomly, the latest 3.2 stable release still has this problem (which is not a problem when you use Redis, it's just the test). Next 3.2 release, due in very short time, will have the test fixed. Thanks.
Update RedisTimeSeries to version 8.11.90 (#15969)