-
Notifications
You must be signed in to change notification settings - Fork 78
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
Resolved the issue where the custom database prefix was lost after th… #335
Conversation
…e primary cluster created the database.
b130c8c
to
f3d9228
Compare
@@ -74,7 +74,7 @@ public void databaseCreatedNotification(String name) { | |||
AbstractMetaStore newMetaStore; | |||
if (metaStore instanceof PrimaryMetaStore) { | |||
newMetaStore = new PrimaryMetaStore(metaStore.getName(), metaStore.getRemoteMetaStoreUris(), | |||
metaStore.getAccessControlType(), newWritableDatabaseWhiteList); | |||
metaStore.getDatabasePrefix(), metaStore.getAccessControlType(), newWritableDatabaseWhiteList); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test on this class: DatabaseWhitelistAccessControlHandlerTest
@@ -55,7 +55,7 @@ public void databaseCreatedNotification(String name) { | |||
AbstractMetaStore newMetaStore; | |||
if (metaStore instanceof PrimaryMetaStore) { | |||
newMetaStore = new PrimaryMetaStore(metaStore.getName(), metaStore.getRemoteMetaStoreUris(), | |||
metaStore.getAccessControlType()); | |||
metaStore.getDatabasePrefix(), metaStore.getAccessControlType()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test in here: ReadWriteCreateAccessControlHandlerTest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you looks, you please add the missing test and we'll be happy to accept it.
OK, I'll add it. |
…e primary cluster created the database.
📝
Configure the primary-meta-store.database-prefix: usercluster2_ for the primary database. Connect to waggle-dance through hs2 and execute create database xxx. The primary database prefix is lost when showing databases.
🔗 Related Issues