| Summary: | Server keeps file handle open after save | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Server | Assignee: | Bogdan Gheorghe <gheorghe> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | gheorghe, Silenio_Quarti, Szymon.Brandys |
| Version: | 3.0 | ||
| Target Milestone: | 4.0 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
(In reply to Mark Macdonald from comment #0) > Note I didn't verify that the javaw process was actually the Orion server > here.. So it could potentially be Eclipse misbehaving, not Orion. > > I will update this bug when it happens again and check the process ID. Yes, it is indeed the Orion server. We were not closing the file reader after we read the file contents in memory. Let's leave this open for now so you can give it a try in a new build. To clarify: I've released a change to master that closes the reader - let's leave the bug open, not the stream. ;) For reference here is the commit: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=5e5b9cc0d5c2fc116665d5ae8e41d29e808e14dc Stream should be closed in a finally block. We have a utility method for piping between streams and closing files at the end, so I switched to that. Also we don't need to wrap the streams in additional buffered reader/writer because we are already using a buffer and this will just allocate a duplicate buffer. Released this commit: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=829d6b2b5970bd358381515d9a161e68448b1b71 I was looking at old bugs. Is this one fixed? Yup - fixed. Closing... |