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
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
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:
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.
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?
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.)
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
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.)
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.
@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?
@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.
Activity
mattsta commentedon Jul 9, 2014
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 serverhere too?siahh commentedon Jul 9, 2014
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
mattsta commentedon Jul 9, 2014
A few notes:
redis_version:2.6.17!= 2.8.12 :)selectinterface.ae_epoll.cand modifying it to support the AIX pollset interface: http://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.basetrf1/pollset.htmI suspect, but can't prove, the
BRPOPLPUSH does not affect WATCHerror is due to howselectbehavior on AIX may differ from more common platforms. There are various reports online of AIX andselectbeing a bit weird.mattsta commentedon Jul 9, 2014
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.
siahh commentedon Jul 9, 2014
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.
mattsta commentedon Jul 9, 2014
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 distcleanor clean re-download/re-checkout Redis and then re-build everything and test again?siahh commentedon Jul 21, 2014
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
erichandsmith commentedon Aug 1, 2014
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.
mattsta commentedon Aug 2, 2014
Wow, great! Somebody verify
make testworks on AIX when using the new polling adapter and we can get it added.siahh commentedon Aug 2, 2014
Hi Erick, I was also working on creating a polling adapter for AIX. And yes, I would like to test it out. :)
erichandsmith commentedon Aug 4, 2014
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.)
siahh commentedon Aug 4, 2014
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
siahh commentedon Aug 4, 2014
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
mattsta commentedon Aug 4, 2014
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_apifield inINFO serverto 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.)siahh commentedon Aug 4, 2014
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
erichandsmith commentedon Aug 6, 2014
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.
mattsta commentedon Aug 6, 2014
siahh commentedon Aug 6, 2014
I'm using a GCC compiler and building a 32 bit binary
erichandsmith commentedon Aug 8, 2014
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"
siahh commentedon Aug 27, 2014
@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?
siahh commentedon Aug 29, 2014
Hi, @mattsta could you please look at the AIX pollset pull request I created?
erichandsmith commentedon Aug 29, 2014
@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.