kaisun2000 commented on issue #1402:
URL: https://github.com/apache/helix/issues/1402#issuecomment-698147299


   ```
     @Test(dependsOnMethods = "testMaxPartitionLimit")
     public void testMaintenanceHistory() throws InterruptedException, 
IOException {
       // In maintenance mode, by controller, for 
MAX_PARTITION_PER_INSTANCE_EXCEEDED
       ControllerHistory history = 
_dataAccessor.getProperty(_keyBuilder.controllerLeaderHistory());
       Map<String, String> lastHistoryEntry = convertStringToMap(
           
history.getMaintenanceHistoryList().get(history.getMaintenanceHistoryList().size()
 - 1));
   
       // **The KV pairs are hard-coded in here for the ease of reading!**
       Assert.assertEquals(lastHistoryEntry.get("OPERATION_TYPE"), "ENTER");    
          -----> this line failed.
       Assert.assertEquals(lastHistoryEntry.get("TRIGGERED_BY"), "CONTROLLER");
       Assert.assertEquals(lastHistoryEntry.get("AUTO_TRIGGER_REASON"),
           "MAX_PARTITION_PER_INSTANCE_EXCEEDED");
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to