_increase_TEST() Expected "18874368" got "0"

Bug #1009148 reported by Jon
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gearman
Invalid
Medium
Brian Aker

Bug Description

I've got a check failure on my server, with Gearman 0.33, thus:

# ./configure
# make
# make check

Here's my server details:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid

And the output:

 Testing gearman_return_t worker return coverage 4:580075672 [ ok ]
 Testing gearman_return_t GEARMAN_FAIL worker coverage 0:3726132 [ ok ]
 Testing gearman_return_t GEARMAN_ERROR worker coverage 5:507287873 [ ok ]
tests/libgearman-1.0/worker_test.cc:1130: in _increase_TEST() Expected "18874368" got "0"
 Testing gearman_client_run_tasks() [ failed ]
 Testing gearman_client_run_tasks() chunked 14:10013738 [ ok ]
 Testing echo_max 0:132467 [ ok ]
 Testing abandoned_worker 0:1589321 [ ok ]

Full check output added as attachment. Update this ticket if you need more to go on.

Tags: check fail tests
Revision history for this message
Jon (jonpad) wrote :
description: updated
description: updated
Revision history for this message
Brian Aker (brianaker) wrote : Re: [Bug 1009148] [NEW] Unit tests in 0.33 contain failure on Ubuntu

Hi,

So it looks like you got a decrement 1 past what should have happened.

On Jun 5, 2012, at 7:23 PM, Jon wrote:

> Public bug reported:
>
> I've got a check failure on my server, with Gearman 0.33, thus:
>
> # ./configure
> # make
> # make check
>
> Here's my server details:
>
> # lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 10.04.4 LTS
> Release: 10.04
> Codename: lucid
>
> And the output:
>
> Testing gearman_return_t worker return coverage 4:580075672 [ ok ]
> Testing gearman_return_t GEARMAN_FAIL worker coverage 0:3726132 [ ok ]
> Testing gearman_return_t GEARMAN_ERROR worker coverage 5:507287873 [ ok ]
> tests/libgearman-1.0/worker_test.cc:1130: in _increase_TEST() Expected "18874368" got "0"
> Testing gearman_client_run_tasks() [ failed ]
> Testing gearman_client_run_tasks() chunked 14:10013738 [ ok ]
> Testing echo_max 0:132467 [ ok ]
> Testing abandoned_worker 0:1589321 [ ok ]
>
> Full check output added as attachment. Update this ticket if you need
> more to go on.
>
> ** Affects: gearmand
> Importance: Undecided
> Status: New
>
>
> ** Tags: check fail tests
>
> --
> You received this bug notification because you are subscribed to
> Gearman.
> https://bugs.launchpad.net/bugs/1009148
>
> Title:
> Unit tests in 0.33 contain failure on Ubuntu
>
> Status in Gearman Server and Client Libraries:
> New
>
> Bug description:
> I've got a check failure on my server, with Gearman 0.33, thus:
>
> # ./configure
> # make
> # make check
>
> Here's my server details:
>
> # lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 10.04.4 LTS
> Release: 10.04
> Codename: lucid
>
> And the output:
>
> Testing gearman_return_t worker return coverage 4:580075672 [ ok ]
> Testing gearman_return_t GEARMAN_FAIL worker coverage 0:3726132 [ ok ]
> Testing gearman_return_t GEARMAN_ERROR worker coverage 5:507287873 [ ok ]
> tests/libgearman-1.0/worker_test.cc:1130: in _increase_TEST() Expected "18874368" got "0"
> Testing gearman_client_run_tasks() [ failed ]
> Testing gearman_client_run_tasks() chunked 14:10013738 [ ok ]
> Testing echo_max 0:132467 [ ok ]
> Testing abandoned_worker 0:1589321 [ ok ]
>
> Full check output added as attachment. Update this ticket if you need
> more to go on.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gearmand/+bug/1009148/+subscriptions

Revision history for this message
Jon (jonpad) wrote : Re: Unit tests in 0.33 contain failure on Ubuntu

Sadly I've no idea - not looked at the code (not a C programmer!). But if there's anything you'd like me to try, I'm happy to help.

Revision history for this message
rjha94 (jha-rajeev) wrote :

I am compiling gearman 0.33 tarball on On Ubuntu 11.04 and the $sudo make tests hang after GEARMAN_ERROR worker coverage.
Here is the snippet from my terminal

I compiled with sqlite3 and with a custom prefix of /usr/local/gearman

--------------------

Testing gearman_worker_add_options(GEARMAN_WORKER_GRAB_UNIQ) worker_work() 0:1037261 [ ok ]
 Testing gearman_worker_set_timeout(2) with failover 0:3350448 [ ok ]
 Testing gearman_return_t worker return coverage 4:533201952 [ ok ]
 Testing gearman_return_t GEARMAN_FAIL worker coverage 0:3232502 [ ok ]
 Testing gearman_return_t GEARMAN_ERROR worker coverage 3:109686301 [ ok ]
^Cmake[2]: *** [check-TESTS] Killed
--------------------------

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

rjha94: are you on a 32bit or 64bit system?

Changed in gearmand:
assignee: nobody → Brian Aker (brianaker)
Revision history for this message
rjha94 (jha-rajeev) wrote :

Brian, That was a 64 bit machine.

Brian Aker (brianaker)
summary: - Unit tests in 0.33 contain failure on Ubuntu
+ _increase_TEST() Expected "18874368" got "0"
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Does anyone associated with this bug still see it? I think we might want to just close it as this is related to old versions of Gearman and EOL'd versions of Ubuntu at this point.

Changed in gearmand:
status: New → Incomplete
importance: Undecided → Critical
importance: Critical → Medium
Revision history for this message
Jon (jonpad) wrote :

I'm the author, and I'd forgotten about it - just got an email reminder. I'd suggest it is closed.

Revision history for this message
Jon (jonpad) wrote :

I've tried to close this as 'Won't Fix', but it won't let me - 'Invalid' will have to do.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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