Skip to content

Change replication slot naming in RDS source#5699

Merged
oeyh merged 1 commit into
opensearch-project:mainfrom
oeyh:rds/change-slot-name
May 19, 2025
Merged

Change replication slot naming in RDS source#5699
oeyh merged 1 commit into
opensearch-project:mainfrom
oeyh:rds/change-slot-name

Conversation

@oeyh

@oeyh oeyh commented May 16, 2025

Copy link
Copy Markdown
Collaborator

Description

Change replication slot naming in RDS source to include pipeline name so it's easier to identify the pipeline it associates with.

The replication slot name used to look like this: data_prepper_xxxxxx.
With this change, it will be: data_prepper_pipeline_name_xxxxxx.
Similar change was done for publication name.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Hai Yan <oeyh@amazon.com>

private String generateReplicationSlotName() {
return "data_prepper_slot_" + UUID.randomUUID().toString().substring(0, 8);
private String generateReplicationSlotName(final String suffix) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: Is there any restriction on the replication slot name length?

@oeyh oeyh May 16, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Length limit is 63 chars. The generated slot name is around 40-50 chars, so it's within range.

@oeyh oeyh merged commit d599a4f into opensearch-project:main May 19, 2025
44 of 47 checks passed
alparish pushed a commit to alparish/data-prepper that referenced this pull request May 22, 2025
Signed-off-by: Hai Yan <oeyh@amazon.com>
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