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

   ## What changes were proposed in this pull request?
   
   If the DN does not receive any commands, then it will not receive the new 
term and drop any queued commands.  This change adds the term to the top-level 
heartbeat response and updates datanode's record of the SCM term.
   
   https://issues.apache.org/jira/browse/HDDS-7621
   
   ## How was this patch tested?
   
   Checked SCM audit logs for heartbeat response, they have `term`:
   
   ```
   | INFO  | SCMAudit | user=hadoop | ip=172.23.0.2 | op=SEND_HEARTBEAT 
{datanodeUUID=eebacd7d-1ba4-4341-8871-4e663f6fcfdb, term=2, command=[]} | 
ret=SUCCESS |  
   | INFO  | SCMAudit | user=hadoop | ip=172.23.0.5 | op=SEND_HEARTBEAT 
{datanodeUUID=cac3df6f-4877-4abb-ada0-d412240fbf7b, term=2, command=[]} | 
ret=SUCCESS |  
   | INFO  | SCMAudit | user=hadoop | ip=172.23.0.7 | op=SEND_HEARTBEAT 
{datanodeUUID=a3c96822-b7e6-4c91-833d-908d05f0e891, term=2, command=[]} | 
ret=SUCCESS |  
   ```
   
   Added assertion in datanode-side unit test.
   
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/3716657223


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