Thanks.

-----Original Message-----
From: Doug Cutting [mailto:[email protected]] 
Sent: Wednesday, December 07, 2011 5:08 PM
To: [email protected]
Subject: Re: AvroTypeException thrown with version change on optional record

On 12/07/2011 02:55 PM, Francois Forster wrote:
> I'm trying to test the case where a server returns a newer version of a 
> response to make sure an older client can read it.
> I think I can accomplish that by removing the version out of the namespace 
> altogether in my test case.

Yes, for bi-directional compatibility you should not change the
namespace or the name of your records.  Also it's best to specify a
default value for fields.  If you add a new field these will be used
when reading old data.  If you remove a field and read newer data using
the old schema then the default would be used.

Doug

Reply via email to