You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Konstantin Shvachko (Jira)" <ji...@apache.org> on 2020/12/24 21:36:00 UTC
[jira] [Commented] (HDFS-15751) Add documentation for msync() API
to filesystem.md
[ https://issues.apache.org/jira/browse/HDFS-15751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254662#comment-17254662 ]
Konstantin Shvachko commented on HDFS-15751:
--------------------------------------------
Added documentation for {{msync()}}.
I put a reference to HDFS documentation describing [Consistent Reads from Observer|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/ObserverNameNode.html] particulalrly the semantics of {{msync()}} in HDFS. Otherwise it is hard to define it in abstract terms without the context.
I was also thinking about {{AbstractContract}}* type tests for {{msync}} but could not think of anything valuable that can be tested here. Essentially we need call {{mkdir()}} and then verify that after {{msync}} the metadata exists via a read call, which we do for HDFS in {{TestConsistentReadsObserver}}. But it is a probabilistic thing as it can succeed even without synchronization if standby catches up fast enough. I guess testing consistency contracts is similar to atomicity, which we don't test in {{AbstractContract}} tests, since it not clear how.
> Add documentation for msync() API to filesystem.md
> --------------------------------------------------
>
> Key: HDFS-15751
> URL: https://issues.apache.org/jira/browse/HDFS-15751
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: documentation
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Shvachko
> Priority: Major
> Attachments: HDFS-15751-01.patch
>
>
> HDFS-15567 introduced new {{FileSystem}} call {{msync()}}. Should add it to the API definitions.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org