[
https://issues.apache.org/jira/browse/FLUME-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248046#comment-13248046
]
[email protected] commented on FLUME-1105:
------------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4667/
-----------------------------------------------------------
Review request for Flume.
Summary
-------
Created a configuration option which controls the creation of foreign key
constraints for the jdbc channel. The value of this option is true by default,
which implies that the FK constraints will be created. To disable these
constraints, the user must explicitly turn it off via configuration.
This addresses bug FLUME-1105.
https://issues.apache.org/jira/browse/FLUME-1105
Diffs
-----
/trunk/flume-ng-channels/flume-jdbc-channel/src/main/java/org/apache/flume/channel/jdbc/ConfigurationConstants.java
1310152
/trunk/flume-ng-channels/flume-jdbc-channel/src/main/java/org/apache/flume/channel/jdbc/impl/DerbySchemaHandler.java
1310152
/trunk/flume-ng-channels/flume-jdbc-channel/src/main/java/org/apache/flume/channel/jdbc/impl/JdbcChannelProviderImpl.java
1310152
/trunk/flume-ng-channels/flume-jdbc-channel/src/main/java/org/apache/flume/channel/jdbc/impl/MySQLSchemaHandler.java
1310152
/trunk/flume-ng-channels/flume-jdbc-channel/src/main/java/org/apache/flume/channel/jdbc/impl/SchemaHandler.java
1310152
/trunk/flume-ng-channels/flume-jdbc-channel/src/test/java/org/apache/flume/channel/jdbc/TestDerbySchemaHandlerQueries.java
1310152
Diff: https://reviews.apache.org/r/4667/diff
Testing
-------
Ran full tests. Also manually verified that the fk constraints could be created
or not via the configuration option.
Thanks,
Arvind
> Allow the optional disabling of foreign keys
> --------------------------------------------
>
> Key: FLUME-1105
> URL: https://issues.apache.org/jira/browse/FLUME-1105
> Project: Flume
> Issue Type: Sub-task
> Components: Channel
> Reporter: Arvind Prabhakar
> Assignee: Arvind Prabhakar
> Fix For: v1.2.0
>
> Attachments: FLUME-1105-1.patch
>
>
> The JDFC Channel uses Foreign Key constraints by default. There should be an
> option to create the schema without such constraints if desired.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira