You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Bill Farner (JIRA)" <ji...@apache.org> on 2015/05/06 00:11:59 UTC

[jira] [Updated] (AURORA-1305) MemTaskStore: items are not removed from secondary index

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

Bill Farner updated AURORA-1305:
--------------------------------
    Sprint: Twitter Aurora Q2'15 Sprint 2

> MemTaskStore: items are not removed from secondary index
> --------------------------------------------------------
>
>                 Key: AURORA-1305
>                 URL: https://issues.apache.org/jira/browse/AURORA-1305
>             Project: Aurora
>          Issue Type: Story
>          Components: Scheduler
>            Reporter: Bill Farner
>            Assignee: Bill Farner
>            Priority: Critical
>
> An updated PMD flagged this bug (see output below).
> This line:
> {code}
> index.remove(key, task);
> {code}
> should be:
> {code}
> index.remove(key, Tasks.id(task));
> {code}
> {noformat}
> Code	Warning
> GC	org.apache.aurora.scheduler.storage.entities.IScheduledTask is incompatible with expected argument type String in org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex.remove(IScheduledTask)
> Bug type GC_UNRELATED_TYPES (click for details) 
> In class org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex
> In method org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex.remove(IScheduledTask)
> Actual type org.apache.aurora.scheduler.storage.entities.IScheduledTask
> Expected String
> Called method com.google.common.collect.Multimap.remove(Object, Object)
> Invoked on org.apache.aurora.scheduler.storage.mem.MemTaskStore$SecondaryIndex.index
> task passed as argument
> org.apache.aurora.scheduler.storage.entities.IScheduledTask.equals(Object) used to determine equality
> At MemTaskStore.java:[line 399]
> {noformat}



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