kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

redis.log not flush in docker on mac OrbStack

Open 3tieto opened this issue 2 years ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Version

unstable

Minimal reproduce step

https://lusun.com/v/5tn1fBHzmDO

EVAL 'redis.log(redis.LOG_WARNING, "test")' 0

I recorded the videos, all in docker, and the first redis shown was output in real time. Then I turned off redis and used kvrocks. I can see that it needs to cache more than a dozen items before outputting them at once.

我录了下视频,都是docker,第一个展示的redis,是实时输出的。然后我关了redis,用kvrocks,可以看到要缓存十几条才一次输出

3tieto avatar Nov 07 '23 02:11 3tieto

@3tieto Thank you!

git-hulk avatar Nov 07 '23 02:11 git-hulk

I cannot reproduce it on my side. To see if other folks have any clues.

git-hulk avatar Nov 19 '23 03:11 git-hulk

image 如上图,加上FLAGS_logbuflevel = -1; 可以只延时一个输出了(我也不知道为什么还是要延时一个,也就是 stdout会实时输出, LOG(WARNING)要打印下一个的时候会输出上一个 ) image

i18nsite avatar Mar 02 '24 01:03 i18nsite