Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Expose Binlog Coordinates at time of promotion as Environment Variable #1323

Merged

Conversation

gsraman
Copy link
Contributor

@gsraman gsraman commented Mar 5, 2021

Related issue: #1322

Description

This PR exposes the binlog coordinates available in promotedReplica.SelfBinlogCoordinates during recovery as environment variable available for the PostFailoverProcesses.
Environment Variable Name: ORC_SUCCESSOR_BINLOG_COORDINATES
Corresponding Magic Token: {successorBinlogCoordinates}

@gsraman
Copy link
Contributor Author

gsraman commented Mar 5, 2021

I verified that the binlog coordinates can be accessed via the post failover processes.

"PostMasterFailoverProcesses": [
            "echo 'Binlog Coordinates: {successorBinlogCoordinates}' >> /tmp/recovery.log"
]

/tmp/recovery.log:

Binlog Coordinates: mysql-bin.XXXXXX:XXXXX

Copy link
Collaborator

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

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

Thank you! Please inline comments

@gsraman gsraman force-pushed the expose_promoted_binlog_coordinates branch from 35f4f45 to 48c7ace Compare March 5, 2021 08:36
@gsraman gsraman requested a review from shlomi-noach March 5, 2021 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants