Skip to content

The following tests have failed #2126

Closed

Description

@jfhenriques

Built 2.8.17 on centos, inside openvz.

!!! WARNING The following tests failed:

*** [err]: PEXPIRE/PSETEX/PEXPIREAT can set sub-second expires in tests/unit/expire.tcl
Expected 'somevalue {}' to equal or match '{} {}'
*** [err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
*** [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)
*** [err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
*** [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
[root@cache1:/usr/src/redis-2.8.17]# uname -a
Linux cache1 2.6.32-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@cache1:/usr/src/redis-2.8.17]# ./src/redis-server -v
Redis server v=2.8.17 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=ec6b2478dcf119f9

Activity

  1. badboy commented on Nov 6, 2014

    @badboy
    Contributor

    Looks like a timing issue again. Does this pop up constantly?

  2. jfhenriques commented on Nov 6, 2014

    @jfhenriques
    Author

    Repeated the tests again and:

    !!! 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.

  3. mattsta commented on Nov 7, 2014

    @mattsta
    Contributor

    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.

  4. vinhvo81 commented on Dec 14, 2014

    @vinhvo81

    I have also met this problem. I increased the RAM up and then this error does not happen again.

  5. antirez commented on Dec 16, 2014

    @antirez
    Contributor

    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...

  6. ovanes commented on Jan 6, 2015

    @ovanes

    Tried to build redis cluster in a docker container (twice). These tests seem to repeatedly fail:

    Execution time of different units:
      0 seconds - unit/printver
      1 seconds - unit/quit
      1 seconds - unit/auth
      4 seconds - unit/multi
      7 seconds - unit/scan
      12 seconds - unit/expire
      15 seconds - unit/protocol
      38 seconds - integration/replication
      6 seconds - integration/aof
      2 seconds - integration/rdb
      3 seconds - integration/convert-zipmap-hash-on-load
      2 seconds - unit/pubsub
      2 seconds - unit/slowlog
      52 seconds - integration/replication-4
      70 seconds - integration/replication-psync
      1 seconds - unit/introspection
      1 seconds - unit/limits
      98 seconds - unit/type/list
      101 seconds - unit/dump
      101 seconds - unit/aofrw
      45 seconds - unit/bitops
      138 seconds - unit/scripting
      225 seconds - unit/type/hash
      235 seconds - unit/maxmemory
      311 seconds - unit/other
      340 seconds - unit/type/list-2
      382 seconds - integration/replication-2
      443 seconds - unit/type/set
      461 seconds - unit/basic
      498 seconds - unit/sort
      401 seconds - unit/hyperloglog
      538 seconds - unit/type/zset
      634 seconds - unit/type/list-3
      733 seconds - integration/replication-3
      652 seconds - unit/memefficiency
      780 seconds - unit/obuf-limits
    
    !!! 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.
    *** [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)
    *** [err]: Detect write load to master in tests/integration/replication-psync.tcl
    Can't detect write load from background clients.
    *** [err]: Detect write load to master in tests/integration/replication-psync.tcl
    Can't detect write load from background clients.
    

    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.

  7. mdevs5531 commented on Jan 29, 2015

    @mdevs5531

    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
    
  8. mattsta commented on Jan 29, 2015

    @mattsta
    Contributor

    single-core ARM with 256MB RAM.

    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).

  9. mdevs5531 commented on Jan 30, 2015

    @mdevs5531

    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?

  10. kok2016 commented on Mar 13, 2016

    @kok2016

    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

  11. lamby commented on Jul 28, 2016

    @lamby
    Contributor

    I can reproduce this even with taskset -c 1

  12. efkan commented on Oct 1, 2016

    @efkan

    I've encountered with some error. One of these the message below:
    *** [err]: Detect write load to master in tests/integration/replication-psync.tcl

    My 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!

  13. lamby commented on Oct 1, 2016

    @lamby
    Contributor

    Then I increased the server configuration

    Hm? Surely this could just be coincidence given this is clearly non-deterministic...

  14. efkan commented on Oct 1, 2016

    @efkan

    just want to say that; You're right @lamby .
    I tried again and I got error again.

  15. jonathanleang commented on Mar 24, 2017

    @jonathanleang

    I can reproduce this bug with Linode $5 instance with 1G Ram.

  16. vedro-compota commented on May 15, 2017

    @vedro-compota

    I have the same bug in ubuntu 16.

  17. antirez commented on May 15, 2017

    @antirez
    Contributor

    Hello, if you test it with the latest Redis 3.2 branch commit, it should be ok. Thanks.

  18. vedro-compota commented on May 15, 2017

    @vedro-compota

    @mattsta thank you for your advice:

    Repeated the tests again

    -- it helped me.

    @antirez thanks for answer! Second attempt of make test was finished successfully.

    if you test it with the latest Redis 3.2 branch, it should be ok.

    I've loaded it by:
    curl -O http://download.redis.io/redis-stable.tar.gz

  19. antirez commented on May 15, 2017

    @antirez
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions