Skip to content

HDDS-3411. Switch Recon SQL DB to Derby. #839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 30, 2020

Conversation

avijayanhwx
Copy link
Contributor

What changes were proposed in this pull request?

Recon currently uses Sqlite as its defacto SQL DB with an option to configure other JDBC compatible databases. However, on some platforms like the IBM power pc, this causes problems from compile time since it does not have the sqlite native driver. This task aims to change the default SQL DB used by Recon to Derby, but retains the out of the box support (no need to supply the driver) for Sqlite as well.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-3411

How was this patch tested?

Added unit tests.
Manually tested on docker with Derby and Sqlite.
Built the recon modules on IBM PPC host.

@vivekratnavel
Copy link
Contributor

@avijayanhwx Thanks for working on this! Looks like the integration test failure might be related to this change.

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 23.674 s <<< FAILURE! - in org.apache.hadoop.ozone.recon.TestReconWithOzoneManager
[ERROR] testOmDBSyncing(org.apache.hadoop.ozone.recon.TestReconWithOzoneManager)  Time elapsed: 0.491 s  <<< FAILURE!

Copy link
Contributor

@vivekratnavel vivekratnavel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Overall LGTM. A couple of minor comments inline.

Copy link
Contributor

@vivekratnavel vivekratnavel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

@vivekratnavel vivekratnavel merged commit 3a1681b into apache:master Apr 30, 2020
@vivekratnavel
Copy link
Contributor

@avijayanhwx Thanks for working on this!
@swagle @elek Thanks for the reviews!
I have merged the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants