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

Netflix / conductor / 4791
70%
master: 70%

Build:
Build:
LAST BUILD BRANCH: 2.31
DEFAULT BRANCH: master
Ran 01 Dec 2020 01:41AM UTC
Jobs 1
Files 301
Run time 24s
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
4791

push

travis-ci-com

web-flow
Improve postgresql DAO performance (#1940)

* Improve postgresql DAO performance

by adding proper FOR SHARE / FOR UPDATE / SKIP LOCKED locks to DB queries
where it makes sense in order to reduce conflicts/deadlocks in DB.

Most important case is when workers poll for work, they are not
interested in tasks that are locked (currently being updated) so they
can leverage 'SKIP LOCKED' to prevent DB locks and tx deadlocks.

This increases the performance of postgres dao

Additional improvements:

+ move thread.sleep out of DB transaction when tasks are being polled
with timeout parameter

+ add serialization_error to the list of causes triggerring TX retry
(this is happening under heavy load)

+ fix processUnack condition: it used to do the opposite. This has been
also fixed in the meantime by u447 <rick.fishman@bcbsfl.com>

+ add a performance test. This test can be executed manually, but should
not be automated

+ add retries to containsMessage method

Signed-off-by: Maros Marsalek <mmarsalek@frinx.io>

* Remove double query from processUnacks

That was a mistake in the original commit, no need to do the same thing twice

77 of 77 new or added lines in 3 files covered. (100.0%)

13025 of 18562 relevant lines covered (70.17%)

0.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4791.1 (bintrayUser=[secure] bintrayKey=[secure] sonatypeUsername=[secure] sonatypePassword=[secure] dockerhubUsername=[secure] dockerhubPassword=[secure]) 01 Dec 2020 01:41AM UTC 0
70.17
Travis Job 4791.1
Source Files on build 4791
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #4791
  • ea9ad82d on github
  • Prev Build on dev (#4790)
  • Next Build on dev (#4804)
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