Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master-Slave fails if unix socket is being used #63

Open
ashtul opened this issue Dec 10, 2019 · 0 comments
Open

Master-Slave fails if unix socket is being used #63

ashtul opened this issue Dec 10, 2019 · 0 comments

Comments

@ashtul
Copy link
Contributor

ashtul commented Dec 10, 2019

Seems like slave tries to connect master through TCP instead

https://app.circleci.com/jobs/github/RediSearch/RediSearch/5927

++ cd /root/project/src/pytest
++ pwd -P
+ SCRIPT_DIR=/root/project/src/pytest
+ '[' -d /root/project/src/pytest/RLTest ']'
+ '[' -n '' ']'
+ PYTHONPATH=:/root/project/src/pytest
+ export PYTHONPATH
+ '[' -e rltest.config ']'
+ ARGS='@rltest.config '
+ '[' -n '' ']'
+ exec python -m RLTest @rltest.config --module=/root/project/build-msan/************* -t /root/project/src/pytest/test_replicate.py
24431:C 10 Dec 2019 12:09:21.841 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
24431:C 10 Dec 2019 12:09:21.841 # Redis version=5.0.4, bits=64, commit=f72f4ea3, modified=0, pid=24431, just started
24431:C 10 Dec 2019 12:09:21.841 # Configuration loaded
24431:M 10 Dec 2019 12:09:21.895 * Running mode=standalone, port=0.
24431:M 10 Dec 2019 12:09:21.895 # Server initialized
24431:M 10 Dec 2019 12:09:21.895 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
24431:M 10 Dec 2019 12:09:21.895 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
24431:M 10 Dec 2019 12:09:21.897 * <ft> RediSearch version 1.6.4 (Git=v1.6.4-5-g904d73dd)
24431:M 10 Dec 2019 12:09:21.897 * <ft> Low level api version 1 initialized successfully
24431:M 10 Dec 2019 12:09:21.897 * <ft> concurrency: ON, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, search pool size: 20, index pool size: 8, 
24431:M 10 Dec 2019 12:09:21.904 * <ft> Initialized thread pool!
24431:M 10 Dec 2019 12:09:21.907 * Module 'ft' loaded from /root/project/build-msan/*************
24431:M 10 Dec 2019 12:09:21.907 * The server is now ready to accept connections at /root/project/build-msan/logs/0393d0d81ca94c5fa5905e026dd7f3d6-master.sock
24681:C 10 Dec 2019 12:09:21.940 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
24681:C 10 Dec 2019 12:09:21.940 # Redis version=5.0.4, bits=64, commit=f72f4ea3, modified=0, pid=24681, just started
24681:C 10 Dec 2019 12:09:21.940 # Configuration loaded
24681:S 10 Dec 2019 12:09:21.948 * Running mode=standalone, port=0.
24681:S 10 Dec 2019 12:09:21.948 # Server initialized
24681:S 10 Dec 2019 12:09:21.948 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
24681:S 10 Dec 2019 12:09:21.948 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
24681:S 10 Dec 2019 12:09:21.950 * <ft> RediSearch version 1.6.4 (Git=v1.6.4-5-g904d73dd)
24681:S 10 Dec 2019 12:09:21.951 * <ft> Low level api version 1 initialized successfully
24681:S 10 Dec 2019 12:09:21.951 * <ft> concurrency: ON, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, search pool size: 20, index pool size: 8, 
24681:S 10 Dec 2019 12:09:22.000 * <ft> Initialized thread pool!
24681:S 10 Dec 2019 12:09:22.003 * Module 'ft' loaded from /root/project/build-msan/*************
24681:S 10 Dec 2019 12:09:22.003 * The server is now ready to accept connections at /root/project/build-msan/logs/0393d0d81ca94c5fa5905e026dd7f3d6-slave.sock
24681:S 10 Dec 2019 12:09:22.003 * Connecting to MASTER localhost:-1
24681:S 10 Dec 2019 12:09:22.003 # Unable to connect to MASTER: No such file or directory
24681:S 10 Dec 2019 12:09:23.005 * Connecting to MASTER localhost:-1
24681:S 10 Dec 2019 12:09:23.005 # Unable to connect to MASTER: No such file or directory
24681:S 10 Dec 2019 12:09:24.005 * Connecting to MASTER localhost:-1
24681:S 10 Dec 2019 12:09:24.005 # Unable to connect to MASTER: No such file or directory
24681:S 10 Dec 2019 12:09:25.006 * Connecting to MASTER localhost:-1
24681:S 10 Dec 2019 12:09:25.006 # Unable to connect to MASTER: No such file or directory
24681:S 10 Dec 2019 12:09:26.006 * Connecting to MASTER localhost:-1

24431:M 10 Dec 2019 12:09:42.104 * Removing the unix socket file.
24431:M 10 Dec 2019 12:09:42.104 # Redis is now ready to exit, bye bye...
24681:signal-handler (1575979782) Received SIGTERM scheduling shutdown...
24681:S 10 Dec 2019 12:09:42.206 # User requested shutdown...
24681:S 10 Dec 2019 12:09:42.206 * Removing the unix socket fil
e.
24681:S 10 Dec 2019 12:09:42.206 # Redis is now ready to exit, bye bye...
test_replicate:testDelReplicate
	❌  (FAIL):	False == True	test_replicate.py:35 [Failed waiting for command to be executed on slave]
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/RLTest/__main__.py", line 616, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/RLTest/__main__.py", line 612, in main
    RLTest().execute()
  File "/usr/local/lib/python2.7/dist-packages/RLTest/__main__.py", line 592, in execute
    self._runTest(test)
  File "/usr/local/lib/python2.7/dist-packages/RLTest/__main__.py", line 482, in _runTest
    fn()
	File "/root/project/src/pytest/test_replicate.py", line 47, in testDelReplicate
    checkSlaveSynced(env, slave, ('exists', 'idx:idx'), 1, time_out=20)
  File "/root/project/src/pytest/test_replicate.py", line 35, in checkSlaveSynced
    env.assertTrue(False, message='Failed waiting for command to be executed on slave')
  File "/usr/local/lib/python2.7/dist-packages/RLTest/env.py", line 291, in assertTrue
    self.assertEqual(bool(val), True, depth + 1, message=message)
  File "/usr/local/lib/python2.7/dist-packages/RLTest/env.py", line 282, in assertEqual
    self._assertion('%s == %s' % (repr(first), repr(second)), first == second, depth, message=message)
  File "/usr/local/lib/python2.7/dist-packages/RLTest/env.py", line 274, in _assertion
    raise TestAssertionFailure('Assertion Failed!')
RLTest.env.TestAssertionFailure: Assertion Failed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant