[
https://issues.apache.org/jira/browse/CASSANDRA-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stu Hood updated CASSANDRA-2001:
--------------------------------
Attachment: 0004-Set-a-default-for-rep-on-write-and-revert-0001.txt
Attaching the patch discussed in IRC.
In summary: it is necessary to add a default with every new field, independent
of whether you are using a union to make the field optional. Defaults are used
in places where the writer's schema doesn't contain a field, but the reader's
schema does. Unions are used to make fields optional: you can use a union
together with a default to add a new optional field.
> 0.7 migrations/schema serializations are incompatible with trunk
> ----------------------------------------------------------------
>
> Key: CASSANDRA-2001
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2001
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Gary Dusbabek
> Assignee: Gary Dusbabek
> Priority: Minor
> Fix For: 0.8
>
> Attachments: 0004-Set-a-default-for-rep-on-write-and-revert-0001.txt,
> data.zip, v1-0001-use-the-writer-schema-and-not-the-current-schema-when-.txt,
> v1-0002-get-rid-of-the-avro-db.migrations-classes-that-were-du.txt,
> v1-0003-fix-order-of-replicate_on_write-and-make-sure-it-s-not.txt
>
>
> Two problems:
> 1. inserting replicate_on_write into the middle of the CfDef members created
> a problem with serialization.
> 2. merging the genavro files created a strange namespacing problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.