Skip to content

PHOENIX-7767,PHOENIX-7768 Change default states for ACTIVE and STANDBY roles and Add HDFSUrl and PeerHDFSUrl to HA Record#2381

Open
ritegarg wants to merge 7 commits intoapache:PHOENIX-7562-feature-newfrom
ritegarg:PHOENIX-7767
Open

PHOENIX-7767,PHOENIX-7768 Change default states for ACTIVE and STANDBY roles and Add HDFSUrl and PeerHDFSUrl to HA Record#2381
ritegarg wants to merge 7 commits intoapache:PHOENIX-7562-feature-newfrom
ritegarg:PHOENIX-7767

Conversation

@ritegarg
Copy link
Contributor

No description provided.

return adminCRRVersion;
}

public String getHdfsUrl() {
Copy link
Contributor

Choose a reason for hiding this comment

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

@ritegarg We also need to modify ReplicationLogGroup to read the hdfs urls from the HAGroupStoreRecord instead of the config. https://github.com/apache/phoenix/blob/PHOENIX-7562-feature-new/phoenix-core-server/src/main/java/org/apache/phoenix/replication/ReplicationLogGroup.java#L770-L776

Copy link
Contributor

Choose a reason for hiding this comment

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

ReplicationLogGroup is already fetching the HAGroupStoreRecord to find the state. https://github.com/apache/phoenix/blob/PHOENIX-7562-feature-new/phoenix-core-server/src/main/java/org/apache/phoenix/replication/ReplicationLogGroup.java#L448-L452
We might need to do a little bit of refactoring.

Copy link
Contributor

Choose a reason for hiding this comment

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

Discussed offline, this will be taken care of in a separate PR.

@tkhurana
Copy link
Contributor

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.

3 participants