[ 
https://issues.apache.org/jira/browse/AVRO-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637782#comment-16637782
 ] 

Thiruvalluvan M. G. edited comment on AVRO-2178 at 10/4/18 3:52 AM:
--------------------------------------------------------------------

A solution to your problem is to use [Unix named 
pipe|https://en.wikipedia.org/wiki/Named_pipe]. Instead of writing to a 
standard file, create a named pipe and then use that file to write and read. 
This would work because the reading named pipe blocks until more data is 
available or the writer explicitly closes the file (see [this 
documentation|https://www.systutorials.com/docs/linux/man/7-pipe/] for example)


was (Author: thiru_mg):
A solution to your problem is to use [Unix named 
pipe|[http://example.com|https://en.wikipedia.org/wiki/Named_pipe]]. Instead of 
writing to a standard file, create a named pipe and then use that file to write 
and read. This would work because the reading named pipe blocks until more data 
is available or the writer explicitly closes the file (see [this 
documentation|https://www.systutorials.com/docs/linux/man/7-pipe/] for example)

> avro C++ api support of tail reading of a growing avro file
> -----------------------------------------------------------
>
>                 Key: AVRO-2178
>                 URL: https://issues.apache.org/jira/browse/AVRO-2178
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>    Affects Versions: 1.8.2
>            Reporter: peien
>            Priority: Major
>
> Two processes, one is writing to an avro data file, another wishes to read 
> the latest written data.
> The problem with current C++ API is that when it reaches the EOF, an 
> exception will be thrown, and from the user perspective, I have no way to 
> retry or 'tail read' it again from the last good position.



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

Reply via email to