[JIRA] Created: (LBCORE-109) FileAppender writing to a shared (networked) file system

FileAppender writing to a shared (networked) file system -------------------------------------------------------- Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Logback dev list FileAppender writing to a shared (networked) file system with lost networked connection. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-109?page=com.atlassian.jira.plugin.system.i... ] Olivier Chartrel commented on LBCORE-109: ----------------------------------------- I am facing the same problem: Java application writing log files on a distant networked file system. If the network connection is lost and LogBack cannot write its log files, I would like to have an error written in my application server standard outpout. I have made some tests: if I enable the "debug" mode for LogBack and network connection is down at application startup, I have an error written in my application server STDOUT. But, if the network connection is OK when application starts and the connection is lost later, LogBack does not write in log files any more but I don't have any error in my application server STDOUT... which is a problem in my case. Is there a way to trace this kind of IO exception in application server's STDOUT (or STDERR) ?
FileAppender writing to a shared (networked) file system --------------------------------------------------------
Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Ceki Gulcu
FileAppender writing to a shared (networked) file system with lost networked connection.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-109?page=com.atlassian.jira.plugin.system.i... ] Syvalta updated LBCORE-109: --------------------------- Attachment: recreate-writer.patch An experimental and not so polished patch. Works and simple test passes, but it lacks thread safety currently, so can not be applied as is. Adding synchronization would be straightforward, but it might affect performance. So some more though might be needed. On the other hand, Writer.write is serialized anyway, so extending synch block a bit might not make much difference.
FileAppender writing to a shared (networked) file system --------------------------------------------------------
Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Ceki Gulcu Attachments: recreate-writer.patch
FileAppender writing to a shared (networked) file system with lost networked connection.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-109?page=com.atlassian.jira.plugin.system.i... ] Ceki Gulcu updated LBCORE-109: ------------------------------ Priority: Critical (was: Major)
FileAppender writing to a shared (networked) file system --------------------------------------------------------
Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Ceki Gulcu Priority: Critical Attachments: recreate-writer.patch
FileAppender writing to a shared (networked) file system with lost networked connection.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-109?page=com.atlassian.jira.plugin.system.i... ] Ceki Gulcu commented on LBCORE-109: ----------------------------------- May also be related to http://www.qos.ch/pipermail/logback-user/2009-December/001382.html
FileAppender writing to a shared (networked) file system --------------------------------------------------------
Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Ceki Gulcu Priority: Critical Attachments: recreate-writer.patch
FileAppender writing to a shared (networked) file system with lost networked connection.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-109?page=com.atlassian.jira.plugin.system.i... ] Ceki Gulcu commented on LBCORE-109: ----------------------------------- In recent commits, I created a test-bed for resting this feature. It dynamically creates a file system, mounts it, fills it will a large file, waits for a second, removed the file, waits, fills the file system agains, and so on. In the mean time, the unit case writes to a file on the newly created file system and checks than it was able to recover from the "No space left on device" error. See FileAppenderResilienceTest for more details.
FileAppender writing to a shared (networked) file system --------------------------------------------------------
Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Ceki Gulcu Priority: Critical Attachments: recreate-writer.patch
FileAppender writing to a shared (networked) file system with lost networked connection.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-109?page=com.atlassian.jira.plugin.system.i... ] Ceki Gulcu commented on LBCORE-109: ----------------------------------- A recent fix [1] addresses this issue and specially tailored tests cases pass but the code is still rough in need of more work. [1] http://github.com/ceki/logback/commit/b90d74bcaadef20e47ac469d51fee1d1367ca5...
FileAppender writing to a shared (networked) file system --------------------------------------------------------
Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Ceki Gulcu Priority: Critical Attachments: recreate-writer.patch
FileAppender writing to a shared (networked) file system with lost networked connection.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCORE-109?page=com.atlassian.jira.plugin.system.i... ] Ceki Gulcu resolved LBCORE-109. ------------------------------- Fix Version/s: 0.9.19 Resolution: Fixed Corrected in 0.9.19
FileAppender writing to a shared (networked) file system --------------------------------------------------------
Key: LBCORE-109 URL: http://jira.qos.ch/browse/LBCORE-109 Project: logback-core Issue Type: Bug Affects Versions: 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15 Reporter: Ceki Gulcu Assignee: Ceki Gulcu Priority: Critical Fix For: 0.9.19
Attachments: recreate-writer.patch
FileAppender writing to a shared (networked) file system with lost networked connection.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
participants (3)
-
Ceki Gulcu (JIRA)
-
Olivier Chartrel (JIRA)
-
Syvalta (JIRA)