• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

treasure-data / perfectqueue / 72 / 3
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v0.8.54
DEFAULT BRANCH: master
Ran 12 Feb 2016 11:29PM UTC
Files 45
Run time 10min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Feb 2016 11:27PM UTC coverage: 92.302%. First build
2.1.6

push

travis-ci

nurse
Use CONNECTION_ID() for finer grained locking

To acquire tasks, run UPDATE and SELECT insteadof SELECT and UPDATE.

This adds a new column `owner` to identify which connection acquires the task.
With this column, RDBCompatBackend#acquire now doesn't get table lock nor use
GET_LOCK(), but adopt mark-and-select method.
It locks only oldest N rows and their gaps during UPDATE.

CONNECTION_ID()
---------------

64bit unsigned integer from the server's internal thread ID counter.
This is unique while the MySQL server running.
http://dev.mysql.com/doc/refman/5.6/en/information-functions.html#function_connection-id
https://bugs.mysql.com/bug.php?id=19806

References
---------------

* http://yuuki.hatenablog.com/entry/go-and-mysql-jobqueue
* https://blog.engineyard.com/2011/5-subtle-ways-youre-using-mysql-as-a-queue-and-why-itll-bite-you

2638 of 2858 relevant lines covered (92.3%)

9.6 hits per line

Source Files on job 72.3 (2.1.6)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 72
  • Travis Job 72.3
  • d700e724 on github
  • Next Job for 2.1.6 on use-CONNECTION_ID (#74.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc