-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
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
High concurrency writes leads to data loss #288
Comments
Running probably into the same issue though not from a stress test like above. If this is to be expected also for code like above, which I need for testing my application, then this is even worse. Major issue for a logging library! |
This reproduces in my stress test, and it is quite horrible. Ubuntu 13.04 if it matters (express.js). |
Related to #228 |
This seems like a pretty significant issue and one that is still present in 1.0.0. |
The best we could hope for is configuration to enable flushing the streams on uncaught exception or exit since the library probably shouldn't do this out of the box. Here's how to setup hooks to flush the streams manually on exit uncaught exception: http://stackoverflow.com/questions/18771707/how-to-flush-winston-logs |
Are there plans to have Winston flush the logs by itself on uncaught exceptions? |
Was there any resolution to this issue? |
The resolution to this issue is going to be |
Prospective Winston user, and came across this issue early in my research which gave me pause. Is this issue now resolved in the latest master branch, given it's 2.2.0? |
You are lucky to learn about this before having jumped in I guess.. On Wed, Mar 30, 2016 at 7:17 AM, Chris Horsley [email protected]
|
"winston": "^3.0.0-rc1" facing the same issue. Logs go away under high concurrency writes. Any comments?? |
This was finally resolved in |
@indexzero how sure are you about that? |
Very. We have appropriate test coverage ensuring this. See: https://github.com/winstonjs/winston/blob/master/test/transports/00-file-stress.test.js. Locking issue due to age. |
testing script
ab testing command
console log result all request
But file log only has 3 result:
The text was updated successfully, but these errors were encountered: