aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Farner (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (AURORA-884) Coverage report analysis may be flaky due to use of Stats
Date Thu, 30 Oct 2014 03:15:33 GMT

     [ https://issues.apache.org/jira/browse/AURORA-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bill Farner reassigned AURORA-884:
----------------------------------

    Assignee: Bill Farner

> Coverage report analysis may be flaky due to use of Stats
> ---------------------------------------------------------
>
>                 Key: AURORA-884
>                 URL: https://issues.apache.org/jira/browse/AURORA-884
>             Project: Aurora
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Bill Farner
>            Assignee: Bill Farner
>
> We use {{Stats.export}} in several places to have closures that export a variable, which
can be flaky with our code coverage analysis task.  If {{SchedulerIT}} is not running long
enough for a stat sample to take place, these classes will be missed.  In reality, these classes
should be considered lacking test coverage if they are only lit up during a stat sample in
{{SchedulerIT}}.
> Currently-affected code sites:
> {noformat}
> $ grep -R 'Stats.export(new StatImpl' src/main/java/
> src/main/java/org/apache/aurora/scheduler/async/TaskScheduler.java:        Stats.export(new
StatImpl<Long>("reservation_cache_size") {
> src/main/java/org/apache/aurora/scheduler/async/AsyncModule.java:    Stats.export(new
StatImpl<Long>("async_tasks_completed") {
> src/main/java/org/apache/aurora/scheduler/storage/mem/MemStorage.java:    Stats.export(new
StatImpl<Integer>("storage_lock_threads_waiting") {
> src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java:    Stats.export(new
StatImpl<Integer>("framework_registered") {
> src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java:      Stats.export(new
StatImpl<Integer>("scheduler_lifecycle_" + state) {
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message