Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
Description
NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.
This is a performance improvement to rendering decorators, occassionally the session stops being read-only and we end up with numerous jdbc commits, this is especially expensive in a clustered environment when the commits also cause coherence chatter.
Essentially there was a section of code in the header that was not wrapped in our usual transaction wrapper, which holds off on all db commits until the end of the transaction. A combination of this, clustering, the session not being read-only, and potentially some db latency cause a large series of jdbc commits which cause the delay. The fix is to wrap the code in the transaction wrapper, which stops the multiple commits.
Patch
There is a patch available for Confluence 4.2.13. If you are unable to upgrade to 4.3.6 and you are on 4.2.13, you can apply this patch. Please do not apply it to any other versions however.
- Try this in a test system first to ensure it resolves your problem and does not cause any unforseen changes.
- Download the two attached files.
- Remove the "-4.2.13" from the class files before copying them to the directory.
- Follow the patch installation instructions
- The subdirectory for the class files is <confluence-installation-directory>/confluence/WEB-INF/classes/com/atlassian/confluence/util/profiling. If any of these directories don't exist, you will need to create them.
Attachments
Issue Links
- is related to
-
CONFSERVER-27613 Render decorator within a transaction to avoid unnecessary JDBC commits
- Closed