This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 43984

Summary: [perf] Performance of rollbacks is poor
Product: java Reporter: Jan Becicka <jbecicka>
Component: UnsupportedAssignee: Daniel Prusa <dprusa>
Status: RESOLVED FIXED    
Severity: blocker CC: issues
Priority: P4 Keywords: PERFORMANCE
Version: 4.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace

Description Jan Becicka 2004-05-28 13:11:11 UTC
Rollback always lasts several seconds, even if
there are only few changes to rollback (e.g. one
method in one class).

This is caused by call FileDescriptor.sync(). This
call flushes all buffers to disk. Can this
mechanism be somehow improved? Beause regular
transactions don't call sync() and they are fast.
Comment 1 Jan Becicka 2004-05-28 13:13:01 UTC
Created attachment 15333 [details]
Stack trace
Comment 2 Martin Matula 2004-05-28 13:37:54 UTC
Rollback is slow and commit is fast because the storage is optimized
for commits. Since rollback happens only if there is a bug in our
code, optimizing it is not worth the effort, thus not a priority. Dan,
please look at it, if it involves more than half a day of work or is
risky (in terms of destabilizing the codebase), let it be for now.
Comment 3 Tomas Hurka 2004-06-22 08:41:23 UTC
Moved to new subcomponent java/javacore.
Comment 4 ehucka 2005-01-11 12:49:06 UTC
old target milestone, please re-evaluate
Comment 5 Jan Becicka 2006-10-26 16:27:20 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 6 Quality Engineering 2007-09-20 10:42:33 UTC
Reorganization of java component