We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Redis reader fails to start if redis_datatype is channel
"reader":{ "mode":"redis", "redis_datatype":"channel", "redis_key":"mykey", "redis_address":"localhost:6379" }
macOS
v1.5.5
macOS Big Sur 11.2.1
SUBSCRIBE mykey
PUBSUB CHANNELS
mykey
type mykey
none
./logkit -f logkit.conf
正常启动,顺利从 Redis channel 读取到数据
抛出了异常:
[ERROR][github.com/qiniu/logkit/mgr] mgr.go:380: NewRunner(redis_reader) failed: key[mykey]'s type expect as channel,actual get none
The text was updated successfully, but these errors were encountered:
其次,Redis 服务器刚启动,里面是空的,没有任何数据的时候,redis reader 妥妥的不能启动,因为这时候任何key都不存在, type key_name会返回none
type key_name
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report
Redis reader fails to start if redis_datatype is channel
logkit 相关配置:
运行环境:
macOS
logkit 版本:
v1.5.5
操作系统版本:
macOS Big Sur 11.2.1
复现过程操作步骤:
SUBSCRIBE mykey
,这样订阅一个channelPUBSUB CHANNELS
可以看到mykey
, 但是type mykey
返回none
。可见 redis 在 channel即使存在的情况下,也会返回none, 这是问题的根源./logkit -f logkit.conf
预期表现:
正常启动,顺利从 Redis channel 读取到数据
实际情况:
抛出了异常:
The text was updated successfully, but these errors were encountered: