hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chengbing Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-3794) TestRMEmbeddedElector fails because of ambiguous LOG reference
Date Thu, 11 Jun 2015 05:52:00 GMT
Chengbing Liu created YARN-3794:

             Summary: TestRMEmbeddedElector fails because of ambiguous LOG reference
                 Key: YARN-3794
                 URL: https://issues.apache.org/jira/browse/YARN-3794
             Project: Hadoop YARN
          Issue Type: Bug
          Components: test
    Affects Versions: 2.7.0
            Reporter: Chengbing Liu
            Assignee: Chengbing Liu

After YARN-2921, {{MockRM}} has also a {{LOG}} field. Therefore {{LOG}} in the following code
snippet is ambiguous.
    protected AdminService createAdminService() {
      return new AdminService(MockRMWithElector.this, getRMContext()) {
        protected EmbeddedElectorService createEmbeddedElectorService() {
          return new EmbeddedElectorService(getRMContext()) {
            public void becomeActive() throws
                ServiceFailedException {
              try {
                LOG.info("Callback called. Sleeping now");
                LOG.info("Sleep done");
              } catch (InterruptedException e) {
Eclipse gives the following error:
The field LOG is defined in an inherited type and an enclosing scope

IMO, we should fix this as {{TestRMEmbeddedElector.LOG}}

This message was sent by Atlassian JIRA

View raw message