stale journal.dirstate !!

Sreedhar Govardhana Sreedhar.Govardhana at Sun.COM
Tue Jan 8 17:32:17 CST 2008


Hi Matt,

 Thanks for the quick reply. more comments in line...

Matt Mackall wrote:
> On Tue, 2008-01-08 at 13:28 -0800, Sreedhar Govardhana wrote:
>   
>> Hi,
>>
>>  I came across a situation that 'push' is failing due to a stale 
>> 'journal.dirstate' file.  'verify'
>> doesn't show any issues and so is 'recover'.  I manually removed the 
>> file and did a push
>> from my child it went fine. But I am not sure about the consequences of 
>> this manual deletion.
>> Is it going to be a problem ?
>>     
>
> Manually removed the file? It should have to you to run recover and
> recover should have cleaned up for you.
>   
I did ran recover, but it failed saying "No interrupted transaction 
available ". I also ran 'verify' and
it also returned no errors. Then as the last option I removed manually.
>   
>> Also, Can one of you please explain me, what are all the situations when 
>> journal.dirstate will
>> not removed ? And what might happened in our case ?
>>     
>
> It happens when the hg process gets killed in the middle of a
> transaction without getting a chance to roll it back. Running recover
> should fix it.
>
> This might happen if your webserver decides hg is taking too long or
> your system crashes, etc.
>   
We are not using webserver, but system crash may be a possibility. But 
in either cases
'recover' should do rollback, but instead it was saying there is no 
interrupted transaction.

Thanx,
~Sree


More information about the Mercurial-devel mailing list