[ 
https://issues.apache.org/jira/browse/OAK-3739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-3739:
--------------------------------
    Summary: RDB*Store: allow schema evolution part 1: check for required 
columns, log unexpected new columns  (was: RDB*Store: allow schema evolution)

> RDB*Store: allow schema evolution part 1: check for required columns, log 
> unexpected new columns
> ------------------------------------------------------------------------------------------------
>
>                 Key: OAK-3739
>                 URL: https://issues.apache.org/jira/browse/OAK-3739
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: rdbmk
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>
> In the future, we may have to add new table columns (for instance, see 
> OAK-3730).
> We can somewhat decouple database changes from code changes by only using new 
> columns when they are present.
> However, we need to make sure that once the columns have been added and the 
> system has started to use them, no older code writes to the DB (potentially 
> causing inconsistencies because of not updating these columns).
> To prevent this, code could check that it understands all columns it finds on 
> startup. If there are unknown columns, it would need to abort and log an 
> error that explains the compatibility issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to