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 - [perf] Performance of rollbacks is poor
Summary: [perf] Performance of rollbacks is poor
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-05-28 13:11 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (3.61 KB, text/plain)
2004-05-28 13:13 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
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