Details
Description
Consistent reads from Standby introduced msync() API HDFS-13688, which updates client's state ID with current state of the Active NameNode to guarantee consistency of subsequent calls to an ObserverNode. Currently this API is exposed via DFSClient only, which makes it hard for applications to access msync(). One way is to use something like this:
if(fs instanceof DistributedFileSystem) { ((DistributedFileSystem)fs).getClient().msync(); }
This should be exposed both for FileSystem and FileContext.
Attachments
Attachments
Issue Links
- breaks
-
HDFS-15639 [JDK 11] Fix Javadoc errors in hadoop-hdfs-client
- Resolved
- is related to
-
HADOOP-17477 [SBN read] Implement msync() for ViewFS
- Open
- relates to
-
HDFS-15751 Add documentation for msync() API to filesystem.md
- Resolved