Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] How to completely disable auto GC in JGit

Hello Matthias,

Thank you a lot.

Could you please give some insides about "gc.autogc" option? Should we turn it off also? Is it a deprecated one? Or will it be more wider used in the future?

On 02.01.2019 19:25, Matthias Sohn wrote:
On Wed, Jan 2, 2019 at 1:01 AM Denis Malyshkin <dmalyshkin@xxxxxxxxxx> wrote:
Hello,

Our application uses JGit. We found that our unit-tests sometimes fail on repository deletion due to "gc.log.lock" files.
To disable auto GC in JGit we use the next settings:
    gc.auto = 0
    gc. autopacklimit = 0

But it seems that it is not enough. Searching through JGit sources I found 2 more parameters:
    gc.autoDetach
    gc.autogc

What is the correct way to fully disable auto GC in JGit including avoiding "gc.log.lock" files creation?
Are the above 4 parameters enough to achieve the goal?

Set gc.auto and gc.autopacklimit to 0 in order to disable auto gc.
Set gc.autoDetach = false to disable background gc which would lock the gc.log file. 

-Matthias


--

                    ISS Art website
Best regards,
Denis Malyshkin, Senior C++ Developer
ISS Art, LLC - custom software development company
Skype: dmalyshkin
Phone: +73812909808

                      Read ISS Art Blog   
                      Find ISS Art on Facebook   
                      Join ISS Art on LinkedIn    Follow ISS Art on Twitter    Visit ISS Art on VK.com
IMPORTANT: The contents of this email and any attachments are confidential and intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and delete it from your system. You may not copy this email or disclose its contents to anyone. Thank you.

Back to the top