adoroszlai opened a new pull request, #3630:
URL: https://github.com/apache/ozone/pull/3630

   ## What changes were proposed in this pull request?
   
   Fix the exception:
   
   ```
   ERROR org.apache.hadoop.ozone.HddsDatanodeService: Exception in 
HddsDatanodeService.
   java.lang.NullPointerException
        at 
org.apache.hadoop.ozone.container.ec.reconstruction.TokenHelper.<init>(TokenHelper.java:68)
        at 
org.apache.hadoop.ozone.container.ec.reconstruction.ECReconstructionCoordinator.<init>(ECReconstructionCoordinator.java:119)
        at 
org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.<init>(DatanodeStateMachine.java:185)
        at 
org.apache.hadoop.ozone.HddsDatanodeService.start(HddsDatanodeService.java:279)
   ```
   
   triggered by such config:
   
   ```xml
     <property>
       <name>hdds.block.token.enabled</name>
       <value>true</value>
     </property>
     <property>
       <name>hdds.container.token.enabled</name>
       <value>true</value>
     </property>
     <property>
       <name>ozone.security.enabled</name>
       <value>false</value>
     </property>
   ```
   
   `TokenHelper` still allows this config (as required for 
`TestContainerCommandsEC` integration test), but checks if certificate client 
is present or not.
   
   https://issues.apache.org/jira/browse/HDDS-7055
   
   ## How was this patch tested?
   
   Updated `TestHddsDatanodeService` with configuration as above to verify 
`HddsDatanodeService` can be started successfully.
   
   `TestContainerCommandsEC` covers functionality of `TokenHelper` with tokens 
enabled.
   
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/2745224823


-- 
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.

To unsubscribe, e-mail: [email protected]

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