Ivana Yovcheva created BROOKLYN-506:
---------------------------------------

             Summary: Generated node on persistence startup is reported as 
locked on Windows
                 Key: BROOKLYN-506
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-506
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Ivana Yovcheva
            Priority: Minor


After running {{{color:red}org.apache.brooklyn.cli.Main{color}}}  using 
{{{color:red}brooklyn-dist{color}}} classpath and with those arguments: 
{{{color:red}launch --persist auto{color}}} persistence startup is giving the 
following error:

{code}
ERROR Subsystem for persistence had startup error (continuing with startup): 
org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Problem writing 
data to file 
C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD (via 
temporary file 
C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD.NXpyjecD.tmp):
 FileSystemException: 
C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD.NXpyjecD.tmp
 -> C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD: The 
process cannot access the file because it is being used by another process.

org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Problem writing 
data to file 
C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD (via 
temporary file 
C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD.NXpyjecD.tmp)
        at 
org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:166) 
~[classes/:na]
Caused by: java.nio.file.FileSystemException: 
C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD.NXpyjecD.tmp
 -> C:\Users\Ivana2\.brooklyn\brooklyn-persisted-state\data\nodes\NXpyjecD: The 
process cannot access the file because it is being used by another process.

        at 
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) 
~[na:1.8.0_101]
{code}

Additional information:
* Reproducible with Wondows OS
* Process explorer shows there is no process using the reported file
* Reproducible after deleting persisted state folder and osgi cache, and after 
restarting the machine
* Tested with IntellijIdea 15.0.2

A wild guess is that a stream is not being closed during startup.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to