Bug 1299070
| Summary: | Apply-updates.bat issue "requested operation cannot be performed on a file with a user-mapped section open)" | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Simeon Pinder <spinder> |
| Component: | Productization | Assignee: | Simeon Pinder <spinder> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Filip Brychta <fbrychta> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | JON 3.3.5 | Keywords: | Triaged |
| Target Milestone: | ER01 | ||
| Target Release: | JON 3.3.5 | ||
| Hardware: | Unspecified | ||
| OS: | Windows | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-18 13:41:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Simeon Pinder
2016-01-15 21:17:30 UTC
This is fixed with commit: e827551d480a179b3a2 to jon.git. Moving to MODIFIED. The issue here was that the newest logic to fix https://bugzilla.redhat.com/show_bug.cgi?id=1277389 re-used an existing RHQ library to optionally modify properties. Even though the correct java file i/o operations were used to clean up the file handles, the windows operating system locks were sometimes taking a while to be cleaned up/garbage collected, triggering the "user-mapped section open" issues. There are several BZ's filed for this type of issue against the Sun/Oracle JDK for earlier 1.6 and earlier. Many were closed with no intention to fix because the problem was the underlying operating system file locking. See here as one example: http://bugs.java.com/view_bug.do?bug_id=4715154 The fix was to refactor the logic to instead handle all of the file I/O and be more careful about not triggering the windows file locking but still cleaning up the resources as is necessary. The new approach only uses BufferedReader/Writers and delays the use of the close() calls. Moving to ON_QA for testing with the following build: https://brewweb.devel.redhat.com//buildinfo?buildID=474795 http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/75/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip *Note: jon-server-patch-3.3.0.GA.zip maps to ER01 build of jon-server-3.3.0.GA-update-05.zip. Verified on Version : 3.3.0.GA Update 05 Build Number : 4242930:1c9f74b |