Hi Dan:

Thanks for the suggestion. I'm importing 1700+ packages and the
hang happens at random locations. So its not any particular package.
I' don't think this is got to do with bad input.

Also just restarting the pkg.depotd seems to resolve the issue and the
same pkg loads ok.

I tried to dtrace it and it looks like dtrace causes enough delay that
it causes the problem to go away. Looks like a race condition. As
on of the symptoms is that the number of pkgs imported as show in
the attr file as well as the webpage seems to reset to 0 once I restart
it. I'm thinking its in that code some place.

I also intend on trying with single thread as suggested by Danek.
Also having a debug python can give us a better python stack from
gdb!

-Angelo
On Feb 16, 2008, at 12:09 PM, Dan Price wrote:

> On Fri 15 Feb 2008 at 11:30PM, Angelo Rajadurai wrote:
>> Looks like pkg.depotd hangs in accept() after uploading 1500+ pkgs
>> using solaris.py. This seems to happen pretty consistently. The hang
>> happens at different pkgs but almost always after uploading a lot
>> of packages. A restart of pkg.depotd seems to clear this up but has
>> other unwanted effects like reseting the "npkg" value in attr file  
>> etc.
>>
>> I have a system in this state right now in SWAN if anyone
>> is interested in seeing the hang. Meanwhile here is some info.
>
> I've seen things like this when you feed the depot bad input.  For
> example, if you feed it a license action with a non-existent license
> file.
>
> Of course, this is a bug and the depot needs to be bulletproofed  
> against
> this, but for now you might want to keep a log of your operations, and
> see if, near the end, there is anything unusual happening.  You might
> be able to simply correct your input to the depot.
>
> Are you holding onto the output of the depot?  Are there any python
> tracebacks previous to the hang?
>
>        -dp
>
> -- 
> Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] -  
> blogs.sun.com/dp

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to