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

Netflix / genie / 1140
94%

Build:
DEFAULT BRANCH: master
Ran 01 Jun 2017 10:20PM UTC
Jobs 1
Files 194
Run time 10s
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
1140

push

travis-ci

web-flow
Add simple user job limiting mechanism (#517)

Motivation:
Introduce a simple mechanism that allows administrators to set a upper limit to the number of jobs users are allowed to concurrently run. The limit, if enabled, is applied to all users.
This mechanism is designed as a first line of defense against a user issuing an avalanche of job submissions (either maliciously (i.e. to cause denial of service), or unintentionally (i.e. client-side bug).

Change:

 * Implement database query that returns the number of active jobs for a given user (in JPAJobSearchService)
 * Introduce new properties to toggle and configure the per-user active jobs limit
 * Introduce new GenieException to model a user limit exceeded
 * Reject job submissions (in JobCoordinationService) if a user exceeded the limit

Note:
It is still possible for a user to issue more jobs than the limit.
For example, by issuing two jobs on two genie instances at exactly the same time, both of them will check the limit and let a job through, even if one one of them should have.

35 of 35 new or added lines in 6 files covered. (100.0%)

5278 of 5962 relevant lines covered (88.53%)

0.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
genie-core/src/main/java/com/netflix/genie/core/jpa/services/JpaJobSearchServiceImpl.java
2
100.0
genie-common/src/main/java/com/netflix/genie/common/exceptions/GenieUserLimitExceededException.java
5
100.0
genie-web/src/main/java/com/netflix/genie/web/controllers/GenieExceptionMapper.java

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
genie-web/src/main/java/com/netflix/genie/web/controllers/GenieExceptionMapper.java
Jobs
ID Job ID Ran Files Coverage
1 1140.1 01 Jun 2017 10:20PM UTC 0
88.53
Travis Job 1140.1
Source Files on build 1140
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1140
  • 5d9fc0cf on github
  • Prev Build on master (#1138)
  • Next Build on master (#1143)
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