You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stu Hood (JIRA)" <ji...@apache.org> on 2010/08/03 17:59:15 UTC

[jira] Created: (CASSANDRA-1351) Avro Schema Swap

Avro Schema Swap
----------------

                 Key: CASSANDRA-1351
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1351
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Stu Hood
            Assignee: Stu Hood
            Priority: Critical
             Fix For: 0.7.0
         Attachments: 0001-Specify-the-readers-schema-as-different-from-the-wri.patch

Due to misreading Avro's docs, I swapped the Schema parameters to Avro's schema resolver.

The schema resolver allows for backwards compatibility by accepting a writer's (ser.) and reader's (deser.) schema, and resolving them to determine which fields to add or ignore. The reader's schema was not being set correctly, which was breaking backwards compatibility (although not the disk format).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1351) Avro Schema Swap

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895252#action_12895252 ] 

Hudson commented on CASSANDRA-1351:
-----------------------------------

Integrated in Cassandra #509 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/509/])
    specify schema used to read serialized migrations. patch by stuhood, reviewed by gdusbabek. CASSANDRA-1351


> Avro Schema Swap
> ----------------
>
>                 Key: CASSANDRA-1351
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1351
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Stu Hood
>            Assignee: Stu Hood
>            Priority: Critical
>             Fix For: 0.7 beta 1
>
>         Attachments: 0001-Specify-the-readers-schema-as-different-from-the-wri.patch
>
>
> Due to misreading Avro's docs, I swapped the Schema parameters to Avro's schema resolver.
> The schema resolver allows for backwards compatibility by accepting a writer's (ser.) and reader's (deser.) schema, and resolving them to determine which fields to add or ignore. The reader's schema was not being set correctly, which was breaking backwards compatibility (although not the disk format).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1351) Avro Schema Swap

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-1351:
--------------------------------------

    Fix Version/s: 0.7 beta 1
                       (was: 0.7.0)

> Avro Schema Swap
> ----------------
>
>                 Key: CASSANDRA-1351
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1351
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Stu Hood
>            Assignee: Stu Hood
>            Priority: Critical
>             Fix For: 0.7 beta 1
>
>         Attachments: 0001-Specify-the-readers-schema-as-different-from-the-wri.patch
>
>
> Due to misreading Avro's docs, I swapped the Schema parameters to Avro's schema resolver.
> The schema resolver allows for backwards compatibility by accepting a writer's (ser.) and reader's (deser.) schema, and resolving them to determine which fields to add or ignore. The reader's schema was not being set correctly, which was breaking backwards compatibility (although not the disk format).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1351) Avro Schema Swap

Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894915#action_12894915 ] 

Stu Hood commented on CASSANDRA-1351:
-------------------------------------

Also, I opened AVRO-603 to handle clarifying these docs.

> Avro Schema Swap
> ----------------
>
>                 Key: CASSANDRA-1351
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1351
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Stu Hood
>            Assignee: Stu Hood
>            Priority: Critical
>             Fix For: 0.7.0
>
>         Attachments: 0001-Specify-the-readers-schema-as-different-from-the-wri.patch
>
>
> Due to misreading Avro's docs, I swapped the Schema parameters to Avro's schema resolver.
> The schema resolver allows for backwards compatibility by accepting a writer's (ser.) and reader's (deser.) schema, and resolving them to determine which fields to add or ignore. The reader's schema was not being set correctly, which was breaking backwards compatibility (although not the disk format).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1351) Avro Schema Swap

Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stu Hood updated CASSANDRA-1351:
--------------------------------

    Attachment: 0001-Specify-the-readers-schema-as-different-from-the-wri.patch

> Avro Schema Swap
> ----------------
>
>                 Key: CASSANDRA-1351
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1351
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Stu Hood
>            Assignee: Stu Hood
>            Priority: Critical
>             Fix For: 0.7.0
>
>         Attachments: 0001-Specify-the-readers-schema-as-different-from-the-wri.patch
>
>
> Due to misreading Avro's docs, I swapped the Schema parameters to Avro's schema resolver.
> The schema resolver allows for backwards compatibility by accepting a writer's (ser.) and reader's (deser.) schema, and resolving them to determine which fields to add or ignore. The reader's schema was not being set correctly, which was breaking backwards compatibility (although not the disk format).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.