Git Product home page Git Product logo

Comments (10)

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


Fixed a code path where the temp dir would not be deleted in Whoosh 1.5.4.

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


Fixed at least one code path where the temp dir wouldn't be deleted. See issue #48.

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


OK, I'm seeing the problem. It doesn't happen all the time, but at least a few of the tests cause it, so I should be able to track it down. Thanks!

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


I think this should be fixed now.

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by adventclad (Bitbucket: adventclad, GitHub: Unknown).


My tmp dir is still filled with empty tmp*.whoosh directory with version 1,4,1

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Matt Chaput (Bitbucket: mchaput, GitHub: mchaput).


Fixed in <>

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Gregor Müllegger (Bitbucket: gregmuellegger, GitHub: gregmuellegger).


Yep, the same here. I will add a pull request. I have fixed this issue in my fork by deleting the temporary directory in the cleanup() method of TempfilePool.

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Collin Anderson (Bitbucket: collinmanderson, GitHub: Unknown).


I think I'm having the same problem:

OSError: [Errno 31] Too many links: '/tmp/tmp1aHowj.whoosh'}}}
{{{OSError: [Errno 31] Too many links: '/tmp/tmp1aHowj.whoosh'

My /tmp/ directory had over 31000 files in it. I had it get it down to about 5000 before I could run rm -rf tmp*.whoosh.

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Anonymous.


#!python
def __del__(self):
        os.removedirs(self.dir)

from whoosh.

fortable1999 avatar fortable1999 commented on August 16, 2024

Original comment by Anonymous.


To quickly correct this bug, I added those 2 lines in : pools.py : 144 :

def del(self):
os.removedirs(self.dir)

Without it, my /tmp folder was crawded and whoosh raised an error because it can't create temp folder.

from whoosh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.