Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 201423 - Project meta data can be lost
Project meta data can be lost
Product: cnd
Classification: Unclassified
Component: Project
PC Solaris
: P2 (vote)
: 7.1
Assigned To: Alexander Simon
701patch2-verified, oss30
Depends on:
  Show dependency treegraph
Reported: 2011-08-30 07:52 UTC by Alexander Simon
Modified: 2011-09-27 12:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2011-08-30 07:52:37 UTC
Some times project meta data of full remote project is broken.
- nbproject/configurations.xml is empty or written partly.
- mirror of nbproject/configurations.xml is OK.
- after restarting IDE project is broken.

Root cause of such behavior is double closing of SmartOutputStream.
At first closing the class copy temporary local file to remote file object and delete temporary file.
At second closing SmartOutputStream counts check sum again and can decides to copy file again (because we have a races and check sum can be performed on partly written remote file). Second writing results in empty nbproject/configurations.xml because temporary file have been deleted.
Comment 1 Alexander Simon 2011-08-30 08:05:18 UTC
Probably remote file system has synchronization problem.
Comment 2 Alexander Simon 2011-08-30 08:13:32 UTC
fixed double closing/writing of remote file object, change set:
Comment 3 Alexander Simon 2011-08-30 16:42:32 UTC
fix i18n in change set:
Comment 4 Vladimir Voskresensky 2011-09-09 14:30:50 UTC
patch candidates are P2s
Comment 5 Vladimir Kvashin 2011-09-12 10:54:08 UTC
I reviewed the fix. It is correct and safe enough.
Comment 6 Alexander Simon 2011-09-13 07:02:48 UTC
transplanted in releases_elif branch release701_fixes
b10ccc1c7410 transplanted to c72db5048f56
6f85d1bf46c1 transplanted to a68751a3f6f4
Comment 7 Alexander Pepin 2011-09-20 14:25:27 UTC
can not reproduce in OSS build 30
Comment 8 Alexander Pepin 2011-09-27 12:05:18 UTC
can not reproduce in OSS dev build based on 7.0.1 patch2

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo