Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1305

MemTaskStore: items are not removed from secondary index

    XMLWordPrintableJSON

Details

    • Story
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.8.0
    • Scheduler
    • None
    • Twitter Aurora Q2'15 Sprint 2
    • 2

    Description

      An updated PMD flagged this bug (see output below).

      This line:

      index.remove(key, task);
      

      should be:

      index.remove(key, Tasks.id(task));
      
      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]
      

      Attachments

        Issue Links

          Activity

            People

              wfarner Bill Farner
              wfarner Bill Farner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: