You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/09/10 14:10:28 UTC

[jira] [Commented] (OAK-2090) Improve logging in compaction and cleanup operation in SegmentMK

    [ https://issues.apache.org/jira/browse/OAK-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14128396#comment-14128396 ] 

Chetan Mehrotra commented on OAK-2090:
--------------------------------------

Updated the logs in http://svn.apache.org/r1623973. Now logs look like (thread name has been shortened for display purpose)

{noformat}
2014-09-10 17:17:29,019 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK compaction started 
2014-09-10 17:17:30,927 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - Estimated compaction in 1.906 s, gain is 52% (388791296/818664448) or (388.8 MB/818.7 MB), so running compaction 
2014-09-10 17:17:30,929 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK compaction running 
2014-09-10 17:17:35,890 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK compaction completed in 4961ms 
2014-09-10 17:17:39,299 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup started. Current repository size 844.8 MB 
2014-09-10 17:17:40,333 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup reclaiming data00028a.tar 
2014-09-10 17:17:40,686 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup reclaiming data00027a.tar 
2014-09-10 17:17:40,687 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup reclaiming data00026a.tar 
2014-09-10 17:17:40,692 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup reclaiming data00007b.tar 
2014-09-10 17:17:40,693 INFO  NA [TarMK ...] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup completed in 1.393 s. Post cleanup size is 451.9 MB and space reclaimed 392.9 MB 
{noformat}

[~alexparvulescu] Can you review the committed change. I would like to merge it to 1.0 branch

> Improve logging in compaction and cleanup operation in SegmentMK
> ----------------------------------------------------------------
>
>                 Key: OAK-2090
>                 URL: https://issues.apache.org/jira/browse/OAK-2090
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segmentmk
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.1, 1.0.6
>
>
> Currently the Compaction and Cleanup logs look like 
> {noformat}
> 2014-09-10 15:51:43,477 INFO  NA [TarMK compaction thread [/path/to/segmentstore], active since Wed Sep 10 15:51:43 IST 2014, previous max duration 2478ms] o.a.j.o.p.s.file.FileStore - TarMK compaction started 
> 2014-09-10 15:51:43,749 INFO  NA [TarMK compaction thread [/path/to/segmentstore], active since Wed Sep 10 15:51:43 IST 2014, previous max duration 2478ms] o.a.j.o.p.s.file.FileStore - Estimated compaction in 272ms, gain is 3% (1844718080/1917861888), so skipping compaction for now 
> 2014-09-10 15:51:45,067 INFO  NA [TarMK flush thread [/path/to/segmentstore], active since Wed Sep 10 15:51:45 IST 2014, previous max duration 495ms] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup started 
> 2014-09-10 15:51:45,435 INFO  NA [TarMK flush thread [/path/to/segmentstore], active since Wed Sep 10 15:51:45 IST 2014, previous max duration 495ms] o.a.j.o.p.s.file.FileStore - TarMK revision cleanup completed in 368ms 
> {noformat}
> It would be helpful if it provide details like size of repo before cleanup and size after cleanup and how much space was reclaimed etc



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)