couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <fdman...@apache.org>
Subject Re: CouchDb not releasing files
Date Sat, 25 Sep 2010 16:15:53 GMT
On Sat, Sep 25, 2010 at 5:12 PM, Robert Dionne
<dionne@dionne-associates.com> wrote:
> I see, cool. I just saw the patch, was wondering how all these terminate functions were
being called, and started refreshing my memory on these bits. They aren't all that intuitive.

True.

>
> Well it's a good idea to try it, as it's harmless and might fix the problem.
>
> Thanks Filipe, Randall, and Paul, for the schooling

you're welcome :)

>
>
> On Sep 25, 2010, at 11:57 AM, Paul Davis wrote:
>
>> Bob,
>>
>> If memory serves, this thread doesn't have anything to do with the
>> couch_db_updater not functioning properly. I thought all the
>> "unlreased files" were related to views, and more specifically, view
>> compaction. Ie, its quite possible that calling couch_file:stop in the
>> proper place would've fixed this. So, my thought was perhaps with
>> Filipe's spotting this and adding the patch, it might fix the view
>> compaction leaking file descriptors issue.
>>
>> HTH,
>> Paul Davis
>>
>> On Sat, Sep 25, 2010 at 11:47 AM, Robert Dionne
>> <dionne@dionne-associates.com> wrote:
>>>
>>>
>>>
>>> On Sep 25, 2010, at 11:15 AM, Randall Leeds wrote:
>>>
>>>> On Sat, Sep 25, 2010 at 17:07, Robert Dionne
>>>> <dionne@dionne-associates.com> wrote:
>>>>> couch_file has a close function which presumably does the right thing,
but it's only called from couch_db_update:terminate
>>>>>
>>>>
>>>> It just shuts down the process.
>>>
>>> right, I'm just wondering how couch_db_update:terminate is ever called? Does
it receive an EXIT message?
>>>
>>>
>>>> The question on the table is whether
>>>> that will close the raw file opened by the process as well. Stephen,
>>>> can you reproduce the issue with .couch files if you set max_open_dbs
>>>> really low (like 2) and repeatedly access three or four databases? If
>>>> not, then I suspect it's a ref counting issue with the view index and
>>>> not directly related to couch_file at all.
>>>>
>>>> -Randall
>>>
>>>
>
>



-- 
Filipe David Manana,
fdmanana@gmail.com, fdmanana@apache.org

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."

Mime
View raw message