Giter Club home page Giter Club logo

Comments (12)

nfo avatar nfo commented on August 19, 2024

The problem was also reported in this thread http://groups.google.com/group/beanstalk-talk/browse_thread/thread/f70697558a44ac20/

from beanstalkd.

kr avatar kr commented on August 19, 2024

This is because beanstalk does a chdir("/") when it detaches, and the relative path given on the command line is being misinterpreted when it comes time to open a second binlog segment.

To get consistent behavior, you should provide an absolute path to the -b option.

I'll have beanstalkd require an absolute path in the future, when you combine -b and -d.

from beanstalkd.

kr avatar kr commented on August 19, 2024

Require absolute path when -b is used with -d.

Closed by a4b5484.

from beanstalkd.

arp avatar arp commented on August 19, 2024

Still an issue. CentOS 5.2 (Final).
Launched with:
$ beanstalkd -d -b /var/spool/beanstalkd -f 1000 -u beanstalkd

Despite of the absolute path being used and newest beanstalkd version (1.4.6), it crashes with OUT_OF_MEMORY error after about 10-20 thousand of jobs.

from beanstalkd.

arp avatar arp commented on August 19, 2024

Found the conditions under which it's a problem:

  1. Start beanstalkd with flags above
  2. Use it
  3. do killall -9 beanstalkd
  4. Start it again
  5. On use it immediately crashes

That's fake persistence.

from beanstalkd.

arp avatar arp commented on August 19, 2024

The only hackaround is to start beanstalkd again, do plain killall, and restart it again.

from beanstalkd.

arp avatar arp commented on August 19, 2024

Also, it seems to exhibit this behavior only when the queue is empty before crash.

from beanstalkd.

arp avatar arp commented on August 19, 2024

Running in non-detached mode does the same. Debug info:
beanstalkd: binlog.c:589 in maintain_invariants_iter: newest binlog has invalid 182 reserved
beanstalkd: prot.c:841 in enqueue_incoming_job: server error: OUT_OF_MEMORY

from beanstalkd.

arp avatar arp commented on August 19, 2024

Will post a new issue, though

from beanstalkd.

kr avatar kr commented on August 19, 2024

I've reproduced this, and I'm working on a fix.

from beanstalkd.

kr avatar kr commented on August 19, 2024

Just for clarity, the new issue is at http://github.com/kr/beanstalkd/issues/closed/issue/44 and it's fixed as well.

from beanstalkd.

kr avatar kr commented on August 19, 2024

Sorry, that link should be http://github.com/kr/beanstalkd/issues/issue/44

from beanstalkd.

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.