Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25631

wrong import order in HostStateEntity.java

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There is a wrong import order issue in HostStateEntity.java

      When build Ambari with mvn install, it will raise following error:

      [INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ ambari-server ---                                                                                                                                    
      [INFO] Starting audit...                                                                                                                                                                                          
      [ERROR] /home/ambari/ambari/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostStateEntity.java:36: Wrong order for 'java.util.Objects' import. [ImportOrder]                                  
      Audit done.                                                                                                                                                                                                       
      [INFO] ------------------------------------------------------------------------                                                                                                                                   
      [INFO] Reactor Summary:                                                                                                                                                                                           
      [INFO]                                                                                                                                                                                                            
      [INFO] Ambari Main 3.0.0.0-SNAPSHOT ....................... SUCCESS [  4.104 s]                                                                                                                                   
      [INFO] Apache Ambari Project POM 3.0.0.0-SNAPSHOT ......... SUCCESS [  0.070 s]                                                                                                                                   
      [INFO] Ambari Web 3.0.0.0-SNAPSHOT ........................ SUCCESS [01:09 min]                                                                                                                                   
      [INFO] Ambari Views 3.0.0.0-SNAPSHOT ...................... SUCCESS [  1.251 s]                                                                                                                                   
      [INFO] Ambari Admin View 3.0.0.0-SNAPSHOT ................. SUCCESS [ 15.388 s]                                                                                                                                   
      [INFO] ambari-utility 3.0.0.0-SNAPSHOT .................... SUCCESS [09:26 min]                                                                                                                                   
      [INFO] Ambari Server SPI 3.0.0.0-SNAPSHOT ................. SUCCESS [ 12.800 s]                                                                                                                                   
      [INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT ............ SUCCESS [ 39.942 s]                                                                                                                                   
      [INFO] Ambari Server 3.0.0.0-SNAPSHOT ..................... FAILURE [31:39 min]                                                                                                                                   
      [INFO] Ambari Functional Tests 3.0.0.0-SNAPSHOT ........... SKIPPED                                                                                                                                               
      [INFO] Ambari Agent 3.0.0.0-SNAPSHOT ...................... SKIPPED                                                                                                                                               
      [INFO] ------------------------------------------------------------------------                                                                                                                                   
      [INFO] BUILD FAILURE                                                                                                                                                                                              
      [INFO] ------------------------------------------------------------------------                                                                                                                                   
      [INFO] Total time:  43:32 min                                                                                                                                                                                     
      [INFO] Finished at: 2021-03-11T02:40:39Z                                                                                                                                                                          
      [INFO] ------------------------------------------------------------------------                                                                                                                                   
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on project ambari-server: Failed during checkstyle execution: There is 1 error reported by Checkstyle 8.9 
      with /home/ambari/ambari/ambari-server/checkstyle.xml ruleset. -> [Help 1]                                                                                                                                        
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on project ambari-server: Failed during checkstyle executi
      on  
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              seanlau liusheng

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                  Issue deployment