freaking1 / google-secure-data-connector

Automatically exported from code.google.com/p/google-secure-data-connector
0 stars 0 forks source link

Resource file watcher thread never closes the files it opens #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The SDC crashed overnight with:
26 May 2010 09:43:10,444
[com.google.dataconnector.client.ResourcesFileWatcher] FATAL
com.google.dataconnector.client.ResourcesFileWatcher  - Could not read
configuration.
java.io.FileNotFoundException: /root/sdc/config/resourceRules.xml (Too many
open files)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at
com.google.dataconnector.util.FileUtil.getFileInputStream(FileUtil.java:104)
        at
com.google.dataconnector.client.ResourcesFileWatcher.run(ResourcesFileWatcher.ja
va:99)

We have now had it running for just under an hour and it has 39 copies of
resourceRules.xml open.

Occurring in version 1.3

Original issue reported on code.google.com by rev...@paradise.net.nz on 25 May 2010 at 10:50

GoogleCodeExporter commented 9 years ago
How long is your agent connected before this bug appears? 

This does seem like a bug for sure.

Original comment by r...@google.com on 22 Jun 2010 at 6:07

GoogleCodeExporter commented 9 years ago
 The problem begins as soon the the program starts but it takes about ~16 hours before the process becomes unresponsive (assuming the process is limited to 1024 files handles). We noticed it would die nightly and need a restart each morning.

Original comment by pete...@gmail.com on 24 Jun 2010 at 5:00

GoogleCodeExporter commented 9 years ago
Committed revision 549 to trunk.  This fix will be included in the final 
release of 1.3 since it just missed the 1.3-rc1 build.

Original comment by dch...@google.com on 24 Jun 2010 at 9:30