Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Reading an avro data file with avro c


Copy link to this message
-
Reading an avro data file with avro c
Hi all,

I encountered a possible bug in the Avro C API. If the following is done, it seems that the Avro data file reader can not read the file correctly

while (has values to write) {
Open file for writing
Write a value to the file
Close the writer.
}

However, the following can be read just fine

Open file for writing
while (has values to write) {
Write a value to the file
}
Close the file

Here it is assumed that reading and writing is done with the C API. The Java API can read data files written in C in both ways.

Is this expected behaviour, a bug or am I just missing something? See the attached C program that reproduces this problem.

Thanks
-Mika
+
Mika Ristimaki 2013-10-18, 15:28
+
Doug Cutting 2013-10-18, 16:44
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB