[ 
https://issues.apache.org/jira/browse/HDDS-1843?focusedWorklogId=302862&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-302862
 ]

ASF GitHub Bot logged work on HDDS-1843:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Aug/19 14:00
            Start Date: 28/Aug/19 14:00
    Worklog Time Spent: 10m 
      Work Description: hadoop-yetus commented on pull request #1364: 
HDDS-1843. Undetectable corruption after restart of a datanode.
URL: https://github.com/apache/hadoop/pull/1364#discussion_r318597402
 
 

 ##########
 File path: hadoop-hdds/common/src/main/resources/audit.log
 ##########
 @@ -0,0 +1,25 @@
+2019-08-28 11:36:31,489 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=CREATE_VOLUME {admin=sbanerjee, owner=sbanerjee, 
volume=testcontainerstatemachinefailures, creationTime=1566972391485, 
quotaInBytes=1152921504606846976} | ret=SUCCESS |  
+2019-08-28 11:36:31,494 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=READ_VOLUME {volume=testcontainerstatemachinefailures} | ret=SUCCESS |  
+2019-08-28 11:36:31,511 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=CREATE_BUCKET {volume=testcontainerstatemachinefailures, 
bucket=testcontainerstatemachinefailures, acls=[user:sbanerjee:a[ACCESS], 
group:staff:a[ACCESS], group:everyone:a[ACCESS], group:localaccounts:a[ACCESS], 
group:_appserverusr:a[ACCESS], group:admin:a[ACCESS], 
group:_appserveradm:a[ACCESS], group:_lpadmin:a[ACCESS], 
group:com.apple.sharepoint.group.2:a[ACCESS], group:_appstore:a[ACCESS], 
group:_lpoperator:a[ACCESS], group:_developer:a[ACCESS], 
group:_analyticsusers:a[ACCESS], group:com.apple.access_ftp:a[ACCESS], 
group:com.apple.access_screensharing:a[ACCESS], 
group:com.apple.access_ssh-disabled:a[ACCESS], 
group:com.apple.sharepoint.group.1:a[ACCESS]], isVersionEnabled=false, 
storageType=DISK, creationTime=0} | ret=SUCCESS |  
+2019-08-28 11:36:31,515 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=READ_VOLUME {volume=testcontainerstatemachinefailures} | ret=SUCCESS |  
+2019-08-28 11:36:31,519 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=READ_BUCKET {volume=testcontainerstatemachinefailures, 
bucket=testcontainerstatemachinefailures} | ret=SUCCESS |  
+2019-08-28 11:36:31,561 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=ALLOCATE_KEY {volume=testcontainerstatemachinefailures, 
bucket=testcontainerstatemachinefailures, key=ratis, dataSize=1024, 
replicationType=RATIS, replicationFactor=ONE, keyLocationInfo=null} | 
ret=SUCCESS |  
+2019-08-28 11:36:37,850 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=COMMIT_KEY {volume=testcontainerstatemachinefailures, 
bucket=testcontainerstatemachinefailures, key=ratis, dataSize=10, 
replicationType=null, replicationFactor=null, 
keyLocationInfo=[{blockID={containerID=1, localID=102693102652358657}, 
length=10, offset=0, token=null, pipeline=Pipeline[ Id: 
33e5321e-9d61-4d31-94ca-a18a6abc80ba, Nodes: 
82c96fdc-06f5-47f4-ab5d-7a2fa599b46e{ip: 192.168.0.64, host: 192.168.0.64, 
networkLocation: /default-rack, certSerialId: null}, Type:RATIS, Factor:ONE, 
State:OPEN], createVersion=0}], clientID=102693102651244544} | ret=SUCCESS |  
+2019-08-28 11:36:50,166 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=READ_VOLUME {volume=testcontainerstatemachinefailures} | ret=SUCCESS |  
+2019-08-28 11:36:50,168 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=READ_BUCKET {volume=testcontainerstatemachinefailures, 
bucket=testcontainerstatemachinefailures} | ret=SUCCESS |  
+2019-08-28 11:36:50,177 | INFO  | OMAudit | user=sbanerjee | ip=127.0.0.1 | 
op=ALLOCATE_KEY {volume=testcontainerstatemachinefailures, 
bucket=testcontainerstatemachinefailures, key=ratis, dataSize=1024, 
replicationType=RATIS, replicationFactor=ONE, keyLocationInfo=null} | 
ret=SUCCESS |  
 
 Review comment:
   whitespace:end of line
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 302862)
    Time Spent: 20m  (was: 10m)

> Undetectable corruption after restart of a datanode
> ---------------------------------------------------
>
>                 Key: HDDS-1843
>                 URL: https://issues.apache.org/jira/browse/HDDS-1843
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Datanode
>    Affects Versions: 0.5.0
>            Reporter: Shashikant Banerjee
>            Assignee: Shashikant Banerjee
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.5.0
>
>         Attachments: HDDS-1843.000.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Right now, all write chunks use BufferedIO ie, sync flag is disabled by 
> default. Also, Rocks Db metadata updates are done in Rocks DB cache first at 
> Datanode. In case, there comes a situation where the buffered chunk data as 
> well as the corresponding metadata update is lost as a part of datanode 
> restart, it may lead to a situation where, it will not be possible to detect 
> the corruption (not even with container scanner) of this nature in a 
> reasonable time frame, until and unless there is a client IO failure or Recon 
> server detects it over time. In order to atleast to detect the problem, Ratis 
> snapshot on datanode should sync the rocks db file . In such a way, 
> ContainerScanner will be able to detect this.We can also add a metric around 
> sync to measure how much of a throughput loss it can incurr.
> Thanks [~msingh] for suggesting this.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to