George Huang created HDDS-6059:
----------------------------------

             Summary: Change Cannot close container log message from WARN to 
DEBUG
                 Key: HDDS-6059
                 URL: https://issues.apache.org/jira/browse/HDDS-6059
             Project: Apache Ozone
          Issue Type: Bug
         Environment: This is likely what was happening:
 # IN a  pipeline DN send close container action to SCM when it reaches 
container threshold 90% of container size.
 # That triggers close container event, which moves container state  to CLOSING 
state in SCM, and send command to DN's to close
 # Then DN moves to CLOSED State, then in next HB it sends DN replica state as 
closed, and we move state of Container to CLOSED in SCM.
 # But when other DN's in pipeline reach threshold, they will also fire similar 
close container action, but as one DN reported closed we already moved to 
CLOSED State in SCM, so that is reason for other close container event 
handlers(triggered when follower DN reached threshold will trigger) and for 
those we see already in closed state.

We can move this to DEBUG, like how we log for ContainerActions. At this point, 
looks like this shall not cause a problem, further investigation is needed to 
understand why this was happening.
            Reporter: George Huang
            Assignee: George Huang


When IncrementalContainerReportHandler move a container to close state, some 
where else was firing a close container event to close the same container 
causing a WARN log entry.

:
|10:19:43.585 AM|INFO|IncrementalContainerReportHandler|Moving container #24615 
to CLOSED state, datanode 8240606c-07e2-4b50-b635-712130e742c6{ip: 
xx.xx.xxx.xx, host: xxx.yyy.com, ports: [REPLICATION=9886, RATIS=9858, 
RATIS_ADMIN=9857, RATIS_SERVER=9856, STANDALONE=9859], networkLocation: 
/default, certSerialId: null, persistedOpState: IN_SERVICE, 
persistedOpStateExpiryEpochSec: 0} reported CLOSED replica.|
|10:19:43.591 AM|INFO|CloseContainerEventHandler|Close container Event 
triggered for container : #24615|
|10:19:43.591 AM|WARN|CloseContainerEventHandler|Cannot close container #24615, 
which is in CLOSED state.|



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to