embedded-redis icon indicating copy to clipboard operation
embedded-redis copied to clipboard

Further documentation to tell user not configure logfile

Open loyalsound opened this issue 9 years ago • 3 comments

Today, I'm get stucks when starting application (Spring Boot) when trying to configure logfile option (I know this project not intent to be run in production system. But I think that it realiable enough to act as a cache store).

When log redirected to file, application will wait forever. So please document that to make easy of use.

Thanks!

loyalsound avatar Nov 23 '15 09:11 loyalsound

I also bumped into the same problem. I configured logfile and the application was stuck.

@loyalsound , could you help me out why it is not advised to use this in production?

tacticiankerala avatar Dec 16 '16 07:12 tacticiankerala

I guess the problem is with awaitRedisServerReady(); in the AbstractRedisInstance.java file. When the output is redirected to a logfile, the library is still trying to read the redis start pattern from the input stream which is empty and it waits forever.

tacticiankerala avatar Mar 07 '17 06:03 tacticiankerala

I have a naive fix for this issue. Please find it here. Based on the feedback I can work on it further.

tacticiankerala avatar Apr 16 '17 09:04 tacticiankerala