[
https://issues.apache.org/jira/browse/HDFS-9144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15036692#comment-15036692
]
Bob Hansen commented on HDFS-9144:
----------------------------------
Thanks for rebasing those changes, [~James Clampffer]. +1 on the changes.
It looks like the refactored lifecycle management clears up the segfault that
has been making test_libhdfs_threaded_hdfspp_test_shim_static segfault. It was
segfaulting fairly regularly on my dev machine before applying the current
patch, and after applying it, I've run through ~40 iterations of native test
without an error.
I can't say for sure that it clears up HDFS-9486, but it definitely makes the
integration tests more stable on my machine.
> Refactor libhdfs into stateful/ephemeral objects
> ------------------------------------------------
>
> Key: HDFS-9144
> URL: https://issues.apache.org/jira/browse/HDFS-9144
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Affects Versions: HDFS-8707
> Reporter: Bob Hansen
> Assignee: Bob Hansen
> Attachments: HDFS-9144.HDFS-8707.001.patch,
> HDFS-9144.HDFS-8707.002.patch, HDFS-9144.HDFS-8707.003.patch,
> HDFS-9144.HDFS-8707.004.patch, HDFS-9144.HDFS-8707.005.patch,
> HDFS-9144.HDFS-8707.006.patch
>
>
> In discussion for other efforts, we decided that we should separate several
> concerns:
> * A posix-like FileSystem/FileHandle object (stream-based, positional reads)
> * An ephemeral ReadOperation object that holds the state for
> reads-in-progress, which consumes
> * An immutable FileInfo object which holds the block map and file size (and
> other metadata about the file that we assume will not change over the life of
> the file)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)