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

ASF GitHub Bot logged work on HDFS-14478:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Apr/22 14:58
            Start Date: 13/Apr/22 14:58
    Worklog Time Spent: 10m 
      Work Description: steveloughran commented on PR #4166:
URL: https://github.com/apache/hadoop/pull/4166#issuecomment-1098157004

   failures on branch-3.3 are the same, 
        [exec] The following tests FAILED:
        [exec]      14 - memcheck_rpc_engine (Failed)
        [exec]      34 - memcheck_hdfs_config_connect_bugs (Failed)
        [exec]      38 - 
memcheck_libhdfs_mini_stress_valgrind_hdfspp_test_static (Failed)
   




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

    Worklog Id:     (was: 756451)
    Time Spent: 2h 20m  (was: 2h 10m)

> Add libhdfs APIs for openFile
> -----------------------------
>
>                 Key: HDFS-14478
>                 URL: https://issues.apache.org/jira/browse/HDFS-14478
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs-client, libhdfs, native
>            Reporter: Sahil Takiar
>            Assignee: Steve Loughran
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> HADOOP-15229 added a "FileSystem builder-based openFile() API" that allows 
> specifying configuration values for opening files (similar to HADOOP-14365).
> Support for {{openFile}} will be a little tricky as it is asynchronous and 
> {{FutureDataInputStreamBuilder#build}} returns a {{CompletableFuture}}.
> At a high level, the API for {{openFile}} could look something like this:
> {code:java}
> hdfsFile hdfsOpenFile(hdfsFS fs, const char* path, int flags,
>                       int bufferSize, short replication, tSize blocksize);
> hdfsOpenFileBuilder *hdfsOpenFileBuilderAlloc(hdfsFS fs,
>         const char *path);
> hdfsOpenFileBuilder *hdfsOpenFileBuilderMust(hdfsOpenFileBuilder *builder,
>         const char *key, const char *value);
> hdfsOpenFileBuilder *hdfsOpenFileBuilderOpt(hdfsOpenFileBuilder *builder,
>         const char *key, const char *value);
> hdfsOpenFileFuture *hdfsOpenFileBuilderBuild(hdfsOpenFileBuilder *builder);
> void hdfsOpenFileBuilderFree(hdfsOpenFileBuilder *builder);
> hdfsFile hdfsOpenFileFutureGet(hdfsOpenFileFuture *future);
> hdfsFile hdfsOpenFileFutureGetWithTimeout(hdfsOpenFileFuture *future,
>         int64_t timeout, javaConcurrentTimeUnit timeUnit);
> int hdfsOpenFileFutureCancel(hdfsOpenFileFuture *future,
>         int mayInterruptIfRunning);
> void hdfsOpenFileFutureFree(hdfsOpenFileFuture *future);
> {code}
> Instead of exposing all the functionality of {{CompleteableFuture}} libhdfs 
> would just expose the functionality of {{Future}}.



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