[ 
https://issues.apache.org/jira/browse/HDFS-11884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Clampffer updated HDFS-11884:
-----------------------------------
    Parent Issue: HDFS-14032  (was: HDFS-8707)

> libhdfs++: Make use of socket wrappers consistent
> -------------------------------------------------
>
>                 Key: HDFS-11884
>                 URL: https://issues.apache.org/jira/browse/HDFS-11884
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: James Clampffer
>            Assignee: James Clampffer
>            Priority: Major
>
> Different areas of the code alternate between hdfs::async_stream (and 
> derivatives) and the more direct asio::ip::tcp::socket.  I propose getting 
> the code to consistently do socket IO through the async_stream style classes.
> -async_stream's async_read and async_write are virtual so we can get rid of 
> classes that template the socket type to support trait injection for mock 
> tests
> -async_stream can have debug info attached to it e.g. a human readable host 
> and port.  Extra info about status of the stream clears the way for 
> implementing a DN connection cache + bookkeeping how many sockets are in use.
> -gives a chance to have a mutex serialize read and write operations.  Not 
> needed in current use cases but can be used to assert that there aren't 
> concurrent reads and writes to the same socket happening unintentionally



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to