redis make test 報錯

■  問題描述:

下午配置一臺阿里雲的服務器,裝完redis, 運行make test 報了這樣的一個錯誤:

!!! WARNING The following tests failed:

*** [err]: Test replication partial resync: ok psync (diskless: yes, reconnect: 1) in tests/integration/replication-psync.tcl
Expected condition '[s -1 sync_partial_ok] > 0' to be true ([s -1 sync_partial_ok] > 0)
Cleanup: may take some time... OK
make[1]: *** [test] Error 1
make[1]: Leaving directory `/usr/local/src/redis-3.2.1/src'
make: *** [test] Error 2

如下圖:


■ 解決辦法:

1,只用單核運行 make test:

taskset -c 1 sudo make test


2,更改 tests/integration/replication-psync.tcl 文件:

vi tests/integration/replication-psync.tcl

把對應報錯的那段代碼中的 after後面的數字,從100改成 500。我個人覺得,這個參數貌似是等待的毫秒數。

這兩種方法都可以解決這個報錯。


本文參考:

1,https://github.com/antirez/redis/issues/2715



2,http://zkread.com/article/873895.html 

發佈了141 篇原創文章 · 獲贊 12 · 訪問量 27萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章