[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-836) Evaluate the need to send the writing schema over with the message

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sat Aug 6 08:22:02 EDT 2011


Evaluate the need to send the writing schema over with the message
------------------------------------------------------------------

                 Key: HSEARCH-836
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-836
             Project: Hibernate Search
          Issue Type: Bug
          Components: serialization
    Affects Versions: 4.0
            Reporter: Emmanuel Bernard


Avro knows to read a message serialized by a different writer assuming certain conditions described in their spec http://avro.apache.org/docs/1.5.1/spec.html

But both reader and writer schema should be provided up deserialization 
GenericDatumReader(Schema writer, Schema reader, GenericData data)

Should we embed the schema with each message? It looks like a significant payload.

If we don't, we can use the major.minor version numbers that are before the avro stream. But that will only work if the receiver is more recent that the writer.

In all case, we need a prototype to test backward compatibility.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list