Fix client trackinginfo crash when tracking off by default#1684
Conversation
624c113 to
fd7e6fd
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1684 +/- ##
============================================
+ Coverage 71.02% 71.05% +0.03%
============================================
Files 121 121
Lines 65254 65313 +59
============================================
+ Hits 46344 46410 +66
+ Misses 18910 18903 -7
|
fd7e6fd to
4087b28
Compare
enjoy-binbin
left a comment
There was a problem hiding this comment.
@uriyage please take a look
|
Checking the flag seems to be not enough. We got this in the CI job: Test case |
|
@yangbodong22011 Can you fix the DCO issue? See the Details link next to the failing DCO CI job. There's some instructions about how to fix it. ( |
This pr will fix valkey-io#1683 After valkey-io#1405, cause this coredump. Signed-off-by: bodong.ybd <bodong.ybd@alibaba-inc.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Signed-off-by: bodong.ybd <bodong.ybd@alibaba-inc.com>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Signed-off-by: ranshid <88133677+ranshid@users.noreply.github.com> Signed-off-by: bodong.ybd <bodong.ybd@alibaba-inc.com>
b9fe01d to
8c2737b
Compare
Sorry for late, done. |
…#1684) After valkey-io#1405, `client trackinginfo` will crash when tracking is off ``` /lib64/libpthread.so.0(+0xf630)[0x7fab74931630] ./src/valkey-server *:6379(clientTrackingInfoCommand+0x12b)[0x57f8db] ./src/valkey-server *:6379(call+0x5ba)[0x5a791a] ./src/valkey-server *:6379(processCommand+0x968)[0x5a8938] ./src/valkey-server *:6379(processInputBuffer+0x18d)[0x58381d] ./src/valkey-server *:6379(readQueryFromClient+0x59)[0x585ea9] ./src/valkey-server *:6379[0x46fa4d] ./src/valkey-server *:6379(aeMain+0x89)[0x5bf3e9] ./src/valkey-server *:6379(main+0x4e1)[0x455821] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fab74576555] ./src/valkey-server *:6379[0x4564f2] ``` The reason is that we did not init pubsub_data by default, we only init it when tracking on. Fixes valkey-io#1683. Co-authored-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by: ranshid <88133677+ranshid@users.noreply.github.com>
…#1684) After valkey-io#1405, `client trackinginfo` will crash when tracking is off ``` /lib64/libpthread.so.0(+0xf630)[0x7fab74931630] ./src/valkey-server *:6379(clientTrackingInfoCommand+0x12b)[0x57f8db] ./src/valkey-server *:6379(call+0x5ba)[0x5a791a] ./src/valkey-server *:6379(processCommand+0x968)[0x5a8938] ./src/valkey-server *:6379(processInputBuffer+0x18d)[0x58381d] ./src/valkey-server *:6379(readQueryFromClient+0x59)[0x585ea9] ./src/valkey-server *:6379[0x46fa4d] ./src/valkey-server *:6379(aeMain+0x89)[0x5bf3e9] ./src/valkey-server *:6379(main+0x4e1)[0x455821] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fab74576555] ./src/valkey-server *:6379[0x4564f2] ``` The reason is that we did not init pubsub_data by default, we only init it when tracking on. Fixes valkey-io#1683. Co-authored-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by: ranshid <88133677+ranshid@users.noreply.github.com>
…#1684) After valkey-io#1405, `client trackinginfo` will crash when tracking is off ``` /lib64/libpthread.so.0(+0xf630)[0x7fab74931630] ./src/valkey-server *:6379(clientTrackingInfoCommand+0x12b)[0x57f8db] ./src/valkey-server *:6379(call+0x5ba)[0x5a791a] ./src/valkey-server *:6379(processCommand+0x968)[0x5a8938] ./src/valkey-server *:6379(processInputBuffer+0x18d)[0x58381d] ./src/valkey-server *:6379(readQueryFromClient+0x59)[0x585ea9] ./src/valkey-server *:6379[0x46fa4d] ./src/valkey-server *:6379(aeMain+0x89)[0x5bf3e9] ./src/valkey-server *:6379(main+0x4e1)[0x455821] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fab74576555] ./src/valkey-server *:6379[0x4564f2] ``` The reason is that we did not init pubsub_data by default, we only init it when tracking on. Fixes valkey-io#1683. Co-authored-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by: ranshid <88133677+ranshid@users.noreply.github.com>
After #1405,
client trackinginfowill crash when tracking is offThe reason is that we did not init pubsub_data by default, we only
init it when tracking on.
Fixes #1683.