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

treasure-data / perfectqueue / 288
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v0.8.54
DEFAULT BRANCH: master
Ran 24 Aug 2016 10:09AM UTC
Jobs 4
Files 30
Run time 4min
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

pending completion
288

push

travis-ci

nurse
UPDATE first strategy

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

This adds a new column `owner`, whose content is expected to be CONNECTION_ID(),
 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
* https://github.com/treasure-data/perfectqueue/pull/15#discussion_r52893022

2081 of 2081 relevant lines covered (100.0%)

8.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 288.1 (2.1.10) 24 Aug 2016 10:09AM UTC 0
100.0
Travis Job 288.1
2 288.2 (2.2.5) 24 Aug 2016 10:12AM UTC 0
100.0
Travis Job 288.2
3 288.3 (2.3.1) 24 Aug 2016 10:12AM UTC 0
100.0
Travis Job 288.3
4 288.4 (ruby-head) 24 Aug 2016 10:14AM UTC 0
100.0
Travis Job 288.4
Source Files on build 288
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #288
  • 5e1c2181 on github
  • Prev Build on use-CONNECTION_ID (#286)
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