--job-retries

Bug #985920 reported by Sammie S. Taunton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
Invalid
Undecided
Brian Aker

Bug Description

Gearman 0.32
Start -> /usr/local/gearman/sbin/gearmand -u gearman -l /var/log/gearman -p 4730 --job-retries 1

Previous versions did not encounter this problem however, currently when using --job-retries 1 the client is crashing with the following error:

_client_do(GEARMAN_WORK_FAIL) occured during gearman_client_run_tasks() -> libgearman/client.cc:215

Checking the logs I find this:
 ERROR 2012-03-19 21:42:54.558540 [ proc ] Dropped job due to max retry count: H:dedicated1.sitegoodies.com:1 2f980301-5647-47f2-9090-3f993754f910 -> libgearman-server/job.c:559

However if I change the job retries to 2 then everything works just fine.

Revision history for this message
Brian Aker (brianaker) wrote : Re: [Bug 985920] [NEW] --job-retries

Anything specific about your client or worker?

I can see about writing a generic test to confirm expected behavior.

On Apr 19, 2012, at 14:55, "Sammie S. Taunton"
<email address hidden> wrote:

> Public bug reported:
>
> Gearman 0.32
> Start -> /usr/local/gearman/sbin/gearmand -u gearman -l /var/log/gearman -p 4730 --job-retries 1
>
> Previous versions did not encounter this problem however, currently when
> using --job-retries 1 the client is crashing with the following error:
>
> _client_do(GEARMAN_WORK_FAIL) occured during gearman_client_run_tasks()
> -> libgearman/client.cc:215
>
> Checking the logs I find this:
> ERROR 2012-03-19 21:42:54.558540 [ proc ] Dropped job due to max retry count: H:dedicated1.sitegoodies.com:1 2f980301-5647-47f2-9090-3f993754f910 -> libgearman-server/job.c:559
>
> However if I change the job retries to 2 then everything works just
> fine.
>
> ** Affects: gearmand
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> Gearman.
> https://bugs.launchpad.net/bugs/985920
>
> Title:
> --job-retries
>
> Status in Gearman Server and Client Libraries:
> New
>
> Bug description:
> Gearman 0.32
> Start -> /usr/local/gearman/sbin/gearmand -u gearman -l /var/log/gearman -p 4730 --job-retries 1
>
> Previous versions did not encounter this problem however, currently
> when using --job-retries 1 the client is crashing with the following
> error:
>
> _client_do(GEARMAN_WORK_FAIL) occured during
> gearman_client_run_tasks() -> libgearman/client.cc:215
>
> Checking the logs I find this:
> ERROR 2012-03-19 21:42:54.558540 [ proc ] Dropped job due to max retry count: H:dedicated1.sitegoodies.com:1 2f980301-5647-47f2-9090-3f993754f910 -> libgearman-server/job.c:559
>
> However if I change the job retries to 2 then everything works just
> fine.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gearmand/+bug/985920/+subscriptions

Revision history for this message
Brian Aker (brianaker) wrote :

Hi!

I can't repeat this. I will push up a new test case for this. If you can see if you can figure out if your code is doing anything different.

Please ask questions, if the test cases don't quite do what your code does.

Thanks!
 -Brian

On Apr 19, 2012, at 2:50 PM, Sammie S. Taunton wrote:

> Public bug reported:
>
> Gearman 0.32
> Start -> /usr/local/gearman/sbin/gearmand -u gearman -l /var/log/gearman -p 4730 --job-retries 1
>
> Previous versions did not encounter this problem however, currently when
> using --job-retries 1 the client is crashing with the following error:
>
> _client_do(GEARMAN_WORK_FAIL) occured during gearman_client_run_tasks()
> -> libgearman/client.cc:215
>
> Checking the logs I find this:
> ERROR 2012-03-19 21:42:54.558540 [ proc ] Dropped job due to max retry count: H:dedicated1.sitegoodies.com:1 2f980301-5647-47f2-9090-3f993754f910 -> libgearman-server/job.c:559
>
> However if I change the job retries to 2 then everything works just
> fine.
>
> ** Affects: gearmand
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> Gearman.
> https://bugs.launchpad.net/bugs/985920
>
> Title:
> --job-retries
>
> Status in Gearman Server and Client Libraries:
> New
>
> Bug description:
> Gearman 0.32
> Start -> /usr/local/gearman/sbin/gearmand -u gearman -l /var/log/gearman -p 4730 --job-retries 1
>
> Previous versions did not encounter this problem however, currently
> when using --job-retries 1 the client is crashing with the following
> error:
>
> _client_do(GEARMAN_WORK_FAIL) occured during
> gearman_client_run_tasks() -> libgearman/client.cc:215
>
> Checking the logs I find this:
> ERROR 2012-03-19 21:42:54.558540 [ proc ] Dropped job due to max retry count: H:dedicated1.sitegoodies.com:1 2f980301-5647-47f2-9090-3f993754f910 -> libgearman-server/job.c:559
>
> However if I change the job retries to 2 then everything works just
> fine.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gearmand/+bug/985920/+subscriptions

Changed in gearmand:
milestone: none → 0.33
assignee: nobody → Brian Aker (brianaker)
status: New → Incomplete
Revision history for this message
Sammie S. Taunton (diemuzi) wrote :

I found the problem and in fact it is not with Gearman, please close this and accept my apologies. Turns out another one of our developers added a switch to have the gearman process restarted directly after the job was done. Since it returns so quickly it was returning an error during the restart process. It's weird that this didn't happen with 0.28 but I am actually happy that it does so stupid doesn't continue to happen =)

Revision history for this message
Brian Aker (brianaker) wrote :

No worries, we now have tests to verify the behavior, which is valuable :)

Changed in gearmand:
status: Incomplete → Opinion
status: Opinion → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.