This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207650 - *huge* log files generated by file system watcher under error conditions
Summary: *huge* log files generated by file system watcher under error conditions
Status: RESOLVED DUPLICATE of bug 205241
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 20:11 UTC by apb
Modified: 2012-01-24 16:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description apb 2012-01-23 20:11:11 UTC
Netbeans was generating an infinite sized log file 260GB and growing. The messages in the log look like:

objectweb/asm-3.3.1/src/org/objectweb/asm/tree/.svn: java.io.IOException: addWatch on /scratch/external/o
bjectweb/asm-3.3.1/src/org/objectweb/asm/tree/.svn errno: 2
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /scratch/external
/objectweb/asm-3.3.1/src/org/objectweb/asm: java.io.IOException: addWatch on /scratch/external/objectweb/a
sm-3.3.1/src/org/objectweb/asm errno: 2
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /scratch/external
/objectweb/asm-3.3.1/src/org/objectweb/.svn: java.io.IOException: addWatch on /scratch/external/objectweb/
asm-3.3.1/src/org/objectweb/.svn errno: 2
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /scratch/external
/objectweb/asm-3.3.1/src/org/.svn: java.io.IOException: addWatch on /scratch/external/objectweb/asm-3.3.1/
src/org/.svn errno: 2
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /scratch/external
/objectweb/asm-3.3.1/src/org: java.io.IOException: addWatch on /scratch/external/objectweb/asm-3.3.1/src/o
rg errno: 2
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /scratch/external
/objectweb/asm-3.3.1/src/.svn: java.io.IOException: addWatch on /scratch/external/objectweb/asm-3.3.1/src/
.svn errno: 2
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: module org.netbeans.libs.aguiswinglayout in
/fastscratch/netbeans-7.1rc1/mobility does not own sources/cdc-agui-swing-layout-src.zip at org.netbeans.c
ore.startup.layers.NbinstURLMapper.decodeURL(NbinstURLMapper.java:110)
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: module org.netbeans.libs.ppawtlayout in /fas
tscratch/netbeans-7.1rc1/mobility does not own sources/cdc-pp-awt-layout-src.zip at org.netbeans.core.star
tup.layers.NbinstURLMapper.decodeURL(NbinstURLMapper.java:110)
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: module org.jdesktop.layout in /fastscratch/n
etbeans-7.1rc1/platform does not own docs/swing-layout-1.0.4-src.zip at org.netbeans.core.startup.layers.N
binstURLMapper.decodeURL(NbinstURLMapper.java:110)
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 18 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots t
ook: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: file:/scratch/external/o
bjectweb/asm-3.3.1/src/ took: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0
ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 1 source roots t
ook: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: module org.netbeans.libs.aguiswinglayout in
/fastscratch/netbeans-7.1rc1/mobility does not own sources/cdc-agui-swing-layout-src.zip at org.netbeans.c
ore.startup.layers.NbinstURLMapper.decodeURL(NbinstURLMapper.java:110)
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: module org.netbeans.libs.ppawtlayout in /fas
tscratch/netbeans-7.1rc1/mobility does not own sources/cdc-pp-awt-layout-src.zip at org.netbeans.core.star
tup.layers.NbinstURLMapper.decodeURL(NbinstURLMapper.java:110)
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: module org.jdesktop.layout in /fastscratch/n
etbeans-7.1rc1/platform does not own docs/swing-layout-1.0.4-src.zip at org.netbeans.core.startup.layers.N
binstURLMapper.decodeURL(NbinstURLMapper.java:110)
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 8 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots t
ook: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 source roots t
ook: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/ext
ernal@f2db58fe:39d7e2eb[invalid], trying again for 10
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/ext
ernal@f2db58fe:39d7e2eb[invalid], trying again for 11
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/ext
ernal@f2db58fe:39d7e2eb[invalid], trying again for 12
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/ext
ernal@f2db58fe:39d7e2eb[invalid], trying again for 13
... and so on for millions of records ....
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,186
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,187
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,188
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,189
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,190
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,191
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,192
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,193
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,194
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,195
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,196
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,197
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,198
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,199
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,200
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,201
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,202
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,203
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,204
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,205
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,206
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,207
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,208
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,209
WARNING [org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj]: Invalid fileObject /scratch/external@f2db58fe:39d7e2eb[invalid], trying again for 1,879,510,210

Notice that is had produced 2 billion lines of warning output...is this really necessary?


There are two bugs here 1 absolutely critical and 1 important:

1. The critical bug is that the log files in production versions of Netbeans *need* to have their file size limited by default. This isn't the first time that Netbeans has gone crazy filling up disks and causing hours worth of work and effort to track down the problem See bug 107865 which patched around the problem but failed to fix this critical issue. Failing to limit log files size by default is just plain negligent and inexcusably bad programming style for a production system, especially after being warned about this possibility in the past.

2. The secondary bug is the file watcher insanity where it mindlessly tries to recover from a irrecoverable situation by infinitely looping and hoping things get better,
Comment 1 Marian Mirilovic 2012-01-24 16:24:01 UTC
Are you using final version of NetBeans 7.1 ? If so, please reopen !

*** This bug has been marked as a duplicate of bug 205241 ***