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

Move namespace replication to own package #7112

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

stephanos
Copy link
Contributor

@stephanos stephanos commented Jan 17, 2025

What changed?

Moved code from common/namespace to common/namespace/nsreplication. Next to the existing common/namespace/nsregistry.

Why?

The goal is to remove all references from common/namespace to common/persistence. One step towards using common/dynamicconfig from common/namespace.

How did you test it?

No behavior changes here.

Potential risks

Documentation

Is hotfix candidate?

@stephanos stephanos force-pushed the ns-replication branch 4 times, most recently from 7aaf73a to d43a04b Compare January 17, 2025 21:02
Comment on lines -265 to -270
// FailoverHistory returns the a copy of failover history for this namespace.
func (ns *Namespace) FailoverHistory() []*replicationpb.FailoverStatus {
return convertFailoverHistoryToReplicationProto(
ns.replicationConfig.GetFailoverHistory(),
)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused code.

@stephanos stephanos requested a review from alexshtin January 17, 2025 21:25
@stephanos stephanos marked this pull request as ready for review January 17, 2025 21:26
@stephanos stephanos requested a review from a team as a code owner January 17, 2025 21:26
Copy link
Member

Choose a reason for hiding this comment

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

This DLQ is just for namespace replication queue. I believe it can go under nsreplication package.

@stephanos stephanos changed the title Move namespace DLQ and Replication to own packages Move namespace DLQ and Replication to own package Jan 17, 2025
@stephanos stephanos changed the title Move namespace DLQ and Replication to own package Move namespace replication to own package Jan 17, 2025
@stephanos stephanos enabled auto-merge (squash) January 17, 2025 23:21
@stephanos stephanos merged commit c9a7813 into temporalio:main Jan 17, 2025
49 checks passed
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.

2 participants