I don't know why it exists or it has to be this way either, we should
just fix it.

Anthony, if we check, lock db entity and expunge an entity would that
save us from race condition, will that work? In such an approach, will
this have any side effects: if I just return from actually expunging
an entity which is already expunged?

Regards.

On Fri, Jan 25, 2013 at 8:53 PM, Anthony Xu <[email protected]> wrote:
> That's a bad/quick fix for http://bugs.cloudstack.org/browse/CS-15922
>
> Delete account will expunge all VMs for this account immediate , if 
> expunge.interval is too short , VM GC may kick in, then two threads are 
> trying to expunge the same VMs, which causes expunge fail.
>
> I think you can remove the hacker, and reopen the bug.
>
>
> Anthony
>
>
>
>> -----Original Message-----
>> From: Min Chen [mailto:[email protected]]
>> Sent: Friday, January 25, 2013 8:30 PM
>> To: [email protected]
>> Cc: [email protected]
>> Subject: Re: Change in integration test for javelin
>>
>> Anthony can comment more on, he checked in that code to avoid some race
>> conditions in expunge VM.
>>
>> -min
>>
>> Sent from my iPhone
>>
>> On Jan 25, 2013, at 7:59 PM, "David Nalley" <[email protected]> wrote:
>>
>> > On Fri, Jan 25, 2013 at 9:57 PM, prasanna <[email protected]> wrote:
>> >> I know this code exists and it fails all the expunge tests
>> internally.
>> >> Do you know why it exists? Why should expunge be > 600 always? Seems
>> >> like we're overriding the global setting that the admin sets and
>> >> without log/warning.
>> >
>> > I concur - no idea why we would do this. If for no other reason than
>> > it makes testing too long, sounds like a bad idea.
>> >
>> > --David

Reply via email to