hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Bacsko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-9269) Minor cleanup in FpgaResourceAllocator
Date Fri, 01 Feb 2019 12:29:00 GMT
Peter Bacsko created YARN-9269:

             Summary: Minor cleanup in FpgaResourceAllocator
                 Key: YARN-9269
                 URL: https://issues.apache.org/jira/browse/YARN-9269
             Project: Hadoop YARN
          Issue Type: Sub-task
            Reporter: Peter Bacsko

Some stuff that we observed:

* {{addFpga()}} - we check for duplicate devices, but we don't print any error/warning if
there's any.
* {{findMatchedFpga()}} should be called findMatchingFpga(). Also, is this method even needed?
We already receive an {{FpgaDevice}} instance in {{updateFpga()}} which I believe is the same
that we're looking up.
* variable {{IPIDpreference}} is confusing
* {{availableFpga}} / {{usedFpgaByRequestor}} are instances of {{LinkedHashMap}}. What's the
rationale behind this? Doesn't a simple {{HashMap}} suffice?
* {{usedFpgaByRequestor}} should be renamed, naming is a bit unclear
* {{allowedFpgas}} should be an immutable list

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org

View raw message