Skip to content
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

Fix entries for mirror host in pg_hba.conf #8597

Merged
merged 4 commits into from Sep 13, 2019

Conversation

dgkimura
Copy link
Contributor

Primary nodes should allow connections from its corresponding mirror
when pg_rewind tries to connect to it. This commit ensure that when
mirrors are added using gpaddmirrors the mirror entries are updated on
the primary pg_hba which is subsequently copied to the mirror node. This
allows connection between primary and mirror when the roles have
switched over.

Copy link
Contributor

@jchampio jchampio left a comment

Choose a reason for hiding this comment

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

The overall approach looks good to me. Good call on keeping the HBA_HOSTNAMES functionality.

gpMgmt/test/behave/mgmt_utils/gpaddmirrors.feature Outdated Show resolved Hide resolved
gpMgmt/bin/gppylib/programs/clsAddMirrors.py Show resolved Hide resolved
gpMgmt/bin/gppylib/programs/clsAddMirrors.py Outdated Show resolved Hide resolved
gpMgmt/bin/gppylib/programs/clsAddMirrors.py Outdated Show resolved Hide resolved
gpMgmt/bin/gppylib/programs/clsAddMirrors.py Show resolved Hide resolved
gpMgmt/test/behave/mgmt_utils/steps/mgmt_utils.py Outdated Show resolved Hide resolved
gpMgmt/test/behave/mgmt_utils/steps/mirrors_mgmt_utils.py Outdated Show resolved Hide resolved
gpMgmt/test/behave/mgmt_utils/steps/mirrors_mgmt_utils.py Outdated Show resolved Hide resolved
gpMgmt/test/behave/mgmt_utils/steps/mirrors_mgmt_utils.py Outdated Show resolved Hide resolved
gpMgmt/Makefile.behave Outdated Show resolved Hide resolved
@bhuvnesh2703
Copy link
Contributor

Thanks @jchampio for the comments, have addressed almost all of it. Take a look

@bhuvnesh2703 bhuvnesh2703 force-pushed the fix-addmirrors branch 2 times, most recently from fdc87c1 to f184353 Compare September 12, 2019 03:02
bhuvnesh2703 and others added 3 commits September 11, 2019 22:04
Primary nodes should allow connections from its corresponding mirror
when pg_rewind tries to connect to it. This commit ensure that when
mirrors are added using gpaddmirrors the mirror entries are updated on
the primary pg_hba which is subsequently copied to the mirror node. This
allows connection between primary and mirror when the roles have
switched over.

Co-authored-by: David Kimura <dkimura@pivotal.io>
@bhuvnesh2703
Copy link
Contributor

@jchampio any more changes?, let me know.. thanks for feedback..

Copy link
Contributor

@jchampio jchampio left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bhuvnesh2703 bhuvnesh2703 merged commit 02db857 into greenplum-db:master Sep 13, 2019
@bhuvnesh2703 bhuvnesh2703 deleted the fix-addmirrors branch September 13, 2019 17:17
@jchampio
Copy link
Contributor

For future reference, make sure you squash WIP commits and fixups before merging.

@bhuvnesh2703
Copy link
Contributor

Unfortunately, yeah i realized that after pushing. When i ported to 6X, i did squash it.

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.

None yet

4 participants