eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
384 stars 143 forks source link

NA not closing files #2601

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 17 years ago

How I saw this bug on Windows: 1. create a cluster with one instance 2. start DAS 3. start NA --startinstances=false 4. start-cluster 5. stop-cluster 6. delete-cluster 7. delete-instance

delete-instance has an error. It says that it can't delete the instance directory. Handle.exe shows that 2 files are locked down by NA:

server.log and server.log.lok

ToDo: 1)Make sure that the new redirection of stdout pipe that has the drainer attached closes its file handle when the thread exits (stop-instance)

Environment

Operating System: Windows XP Platform: All

Affected Versions

[9.1pe]

glassfishrobot commented 6 years ago
glassfishrobot commented 17 years ago

@glassfishrobot Commented bnevins said: ..

glassfishrobot commented 17 years ago

@glassfishrobot Commented bnevins said: I did the "todo". The new stuff doesn't appear to be involved. This looks like an old bug. Here is the simplest way to reproduce it:

1) start-instance 2) stop-instance 3) use "handle.exe" to find all open file handles

Each time NA has 2 open handles. It is impossible to delete these files on Windows.

glassfishrobot commented 17 years ago

@glassfishrobot Commented bnevins said: I took out ALL of my changes from the past week – which involve server.log

NA is still leaving open file handles.

C:\jws\glassfish\admin\servermgmt>handle i3 | grep logs javaw.exe pid: 5008 C50: C:\as\nodeagents\na\i3\logs\server.log javaw.exe pid: 5008 D3C: C:\as\nodeagents\na\i3\logs\server.log.lck javaw.exe pid: 5008 FA8: C:\as\nodeagents\na\i3\logs\server.log

glassfishrobot commented 17 years ago

@glassfishrobot Commented gfbugbridge said:

glassfishrobot commented 17 years ago

@glassfishrobot Commented ai109478 said: Not a showstopper.

glassfishrobot commented 17 years ago

@glassfishrobot Commented bnevins said: assigning to NA owner

glassfishrobot commented 14 years ago

@glassfishrobot Commented tmueller said: This appears to be a duplicate of 3372 which was already fixed.

glassfishrobot commented 17 years ago

@glassfishrobot Commented Was assigned to ne110415

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-2601

glassfishrobot commented 17 years ago

@glassfishrobot Commented Reported by bnevins

glassfishrobot commented 14 years ago

@glassfishrobot Commented Marked as duplicate on Friday, May 14th 2010, 7:59:52 am