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-10147) FPGA plugin can't find the localized aocx file
Date Tue, 18 Feb 2020 10:32:00 GMT
Peter Bacsko created YARN-10147:

             Summary: FPGA plugin can't find the localized aocx file
                 Key: YARN-10147
                 URL: https://issues.apache.org/jira/browse/YARN-10147
             Project: Hadoop YARN
          Issue Type: Bug
          Components: nodemanager
            Reporter: Peter Bacsko
            Assignee: Peter Bacsko

There's a bug in the FPGA plugin which is intended to find the localized "aocx" file:

    if (localizedResources != null) {
      Optional<Path> aocxPath = localizedResources
          .filter(path -> matchesIpid(path, id))

      if (aocxPath.isPresent()) {
        ipFilePath = aocxPath.get().toUri().toString();
        LOG.debug("Found: " + ipFilePath);
    } else {
      LOG.warn("Localized resource is null!");

    return ipFilePath;

  private boolean matchesIpid(Path p, String id) {
    return p.getName().toLowerCase().equals(id.toLowerCase())
        && p.getName().endsWith(".aocx");

The method {{matchesIpid()}} works incorrecty: the {{id}} argument is the expected filename,
but without the extension. Therefore the {{equals()}} comparison will always be false.

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