Skip to content

Make test fails 2.8.12 on AIX 6.1 #1866

Closed

Description

@siahh

I finally got Redis to work and when I'm running it the only test that fails to pass is the one below . I was wondering if this is a bug in Redis or if its something AIX related, please help

!!! WARNING The following tests failed:

*** [err]: BRPOPLPUSH does not affect WATCH while still blocked in tests/unit/type/list.tcl
Expected 'somevalue' to equal or match ''
Cleanup: may take some time... OK
Makefile:212: recipe for target 'test' failed
make: *** [test] Error 1

Activity

  1. mattsta commented on Jul 9, 2014

    @mattsta
    Contributor

    Out of all the tests, that's the only one failing?

    If you run the test multiple times, does it always fail on the same test?

    Since your Redis server is compiling, can you paste the output of INFO server here too?

  2. siahh commented on Jul 9, 2014

    @siahh
    ContributorAuthor

    Yes out of all the test that is the only one failing for all the time I have tried running the tests, at first I thought I was due to timing issues but that wasn't the issue.
    And for some reason the version number came as 2.6.17 even though Im working on a 2.8.12 redis server
    INFO server output:

    total_connections_received:1
    total_commands_processed:18
    instantaneous_ops_per_sec:0
    rejected_connections:0
    expired_keys:0
    evicted_keys:0
    keyspace_hits:0
    keyspace_misses:0
    pubsub_channels:0
    pubsub_patterns:0
    latest_fork_usec:0

    Replication

    role:master
    connected_slaves:0

    CPU

    used_cpu_sys:14.63
    used_cpu_user:6.50
    used_cpu_sys_children:0.00
    used_cpu_user_children:0.00

    Keyspace

    127.0.0.1:6379> info server

    Server

    redis_version:2.6.17
    redis_git_sha1:00000000
    redis_git_dirty:0
    redis_mode:standalone
    os:AIX 1 00F65E5B4C00
    arch_bits:32
    multiplexing_api:select
    gcc_version:4.2.3
    process_id:5308630
    run_id:ade1c490d1ffecd3c4b25828c7444475693aea4e
    tcp_port:6379
    uptime_in_seconds:89194
    uptime_in_days:1
    hz:10
    lru_clock:2079898

  3. mattsta commented on Jul 9, 2014

    @mattsta
    Contributor

    A few notes:

    I suspect, but can't prove, the BRPOPLPUSH does not affect WATCH error is due to how select behavior on AIX may differ from more common platforms. There are various reports online of AIX and select being a bit weird.

  4. mattsta commented on Jul 9, 2014

    @mattsta
    Contributor

    Oh, I just saw you mentioned the version is showing up wrong.

    The version is stored in verison.h, so at some point you've worked with a past version and some files didn't get updated?

    Check the contents of version.h to see what it thinks you're running.

  5. siahh commented on Jul 9, 2014

    @siahh
    ContributorAuthor

    I'll try to make an AIX-specific adpter and see if that fixes the issue.By the way,the content in version.h thinks Im running 2.8.12.

  6. mattsta commented on Jul 9, 2014

    @mattsta
    Contributor

    If your version.h says 2.8.12 then there's no way your server can report anything else. You're building against some sources you don't expect to be there :)

    Try to fix it by saving all the custom changes you did to get your compile working, then either run a make distclean or clean re-download/re-checkout Redis and then re-build everything and test again?

  7. siahh commented on Jul 21, 2014

    @siahh
    ContributorAuthor

    Hi Matt, I was able to fix the version issue. Im still working on creating an AIX specific polling adapter meanwhille I pushes all the changes I made

  8. erichandsmith commented on Aug 1, 2014

    @erichandsmith

    Cloned and created a fix in https://github.com/erichandsmith/redis/: config.h, ae.c, and ae_pollset.c.
    SiahL, if you'd like to test it out, let me know and I'll create a pull request. Thanks.

  9. mattsta commented on Aug 2, 2014

    @mattsta
    Contributor

    Wow, great! Somebody verify make test works on AIX when using the new polling adapter and we can get it added.

  10. siahh commented on Aug 2, 2014

    @siahh
    ContributorAuthor

    Hi Erick, I was also working on creating a polling adapter for AIX. And yes, I would like to test it out. :)

  11. erichandsmith commented on Aug 4, 2014

    @erichandsmith

    All tests successful. SiahL could you please also test? (And sorry for stepping on your toes. I'm on a deadline, so was instructed to create a polling adapter quick.)

  12. siahh commented on Aug 4, 2014

    @siahh
    ContributorAuthor

    erichandsmith No problem! I tested it this morning all test passed successfully but when I tested it again I got these warnings;

    !!! WARNING The following tests failed:

    *** [err]: BRPOPLPUSH does not affect WATCH while still blocked in tests/unit/type/list.tcl
    Expected 'somevalue' to equal or match ''
    *** [err]: FLUSHALL should replicate in tests/integration/replication.tcl
    Expected '0 0' to equal or match '0 1'
    *** [err]: PEXPIRE/PSETEX/PEXPIREAT can set sub-second expires in tests/unit/expire.tcl
    Expected 'somevalue {}' to equal or match '{} {}'
    Cleanup: may take some time... OK
    Makefile:210: recipe for target 'test' failed
    make[1]: *** [test] Error 1
    make[1]: Leaving directory '/home/Redis_/redis/src'
    Makefile:6: recipe for target 'test' failed
    make: *** [test] Error 2

  13. siahh commented on Aug 4, 2014

    @siahh
    ContributorAuthor

    And oh, I had to apply these changes(https://github.com/ibmsoe/redis/tree/AIX_fix) to be able to compile and run the tests

  14. mattsta commented on Aug 4, 2014

    @mattsta
    Contributor

    Those look like the same errors from before the polling adapter change? So, with the polling adapter AIX still has timing issues somewhere?

    Maybe try running the tests 5 to 10 times and get a feeling for how often they happen? Also check the output of the multiplexing_api field in INFO server to make sure it's using what you think it's using. (Maybe run from a clean checkout too just to make sure no old code is sitting around.)

  15. siahh commented on Aug 4, 2014

    @siahh
    ContributorAuthor

    Yes, the errors are similar to what I had without the pollset . Here is the INFO server output

    redis_version:2.9.999
    redis_git_sha1:3fc5e29e
    redis_git_dirty:1
    redis_build_id:8b19c5e6d6bea419
    redis_mode:standalone
    os:AIX 1 00F65E5B4C00
    arch_bits:32
    multiplexing_api:pollset
    gcc_version:4.8.2
    process_id:11796708
    run_id:a2e8f4566ef6f17ec557b7b196b6a75354a5dd1b
    tcp_port:6379
    uptime_in_seconds:138
    uptime_in_days:0
    hz:10
    lru_clock:14674350
    config_file:
    127.0.0.1:6379

  16. erichandsmith commented on Aug 6, 2014

    @erichandsmith

    Hello, SiahL. What version of AIX are you compiling on? Are you compiling with the GCC compiler? Are you compiling and building a 64-bit binary? Thank you.

  17. mattsta commented on Aug 6, 2014

    @mattsta
    Contributor

    Are you compiling with the GCC compiler? Are you compiling and building a 64-bit binary?

    arch_bits:32
    multiplexing_api:pollset
    gcc_version:4.8.2
  18. siahh commented on Aug 6, 2014

    @siahh
    ContributorAuthor

    I'm using a GCC compiler and building a 32 bit binary

  19. erichandsmith commented on Aug 8, 2014

    @erichandsmith

    Hello, SiahL. If you are on AIX 6.1 or AIX 7.1, could you please test a 64-bit compile? (You might need to install the make_64 rpm.) Thank you.

    make CFLAGS="-maix64" LDFLAGS="-maix64"

  20. siahh commented on Aug 27, 2014

    @siahh
    ContributorAuthor

    @erichandsmith Sorry, I was caught up with another project. And yes, I tested on the 64-buit compile as well. The tests passed 5 out of the 10 times I tried. I think using the polling adapter makes the test failures ( or timing issue?) occur less often or what do you think?

  21. siahh commented on Aug 29, 2014

    @siahh
    ContributorAuthor

    Hi, @mattsta could you please look at the AIX pollset pull request I created?

  22. erichandsmith commented on Aug 29, 2014

    @erichandsmith

    @Siahl Not sure. We've run the tests multiple times on 6.1 and 7.1 (see attached images). Perhaps it is due to the system resources. We ran the tests with "--clients 2" on systems with fewer resources, and everything worked fine. Also, we did have to fiddle with some of Redis's includes to get it to compile correctly on AIX. Maybe our builds are still different somehow. I'll push our other changes to my Redis fork, and hopefully that will help. Thank you.

    AIX 6.1 Test Results

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions