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(citus-cdc): fix publication alter of citus connector #12488

Merged
merged 5 commits into from
Sep 28, 2023
Merged

Conversation

StrikeW
Copy link
Contributor

@StrikeW StrikeW commented Sep 22, 2023

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

citus connector will create a FOR ALL TABLES publication, which will replicates changes for all tables in the database, including tables created in the future. And it cannot be altered afterwards.

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@github-actions github-actions bot added the type/fix Bug fix label Sep 22, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 4177 files.

Valid Invalid Ignored Fixed
1830 1 2346 0
Click to see the invalid file list
  • java/connector-node/risingwave-connector-service/src/main/java/com/risingwave/connector/source/common/CitusValidator.java

@StrikeW StrikeW marked this pull request as ready for review September 26, 2023 02:28
Copy link
Contributor

@tabVersion tabVersion left a comment

Choose a reason for hiding this comment

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

thanks for your effort

@@ -20,5 +20,30 @@ CREATE TABLE orders_rw (
schema.name = 'public',
table.name = 'orders',
slot.name = 'orders_dbz_slot',
publication.create.enable = 'true'
Copy link
Contributor

Choose a reason for hiding this comment

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

so publication.create.enable = 'true' is a default behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, user can create and provide their own pub.

@tabVersion
Copy link
Contributor

and can you explain why we need this change? I am not familiar with citus context

@StrikeW
Copy link
Contributor Author

StrikeW commented Sep 27, 2023

and can you explain why we need this change? I am not familiar with citus context

Our citus connector will create a FOR ALL TABLES publication to replicate all sharding tables (table_001,t able_002, etc.) for each worker node. This publication cannot be altered afterwards, otherwise error will occurs. This PR fix the issue.

@StrikeW StrikeW enabled auto-merge September 27, 2023 15:26
@StrikeW StrikeW added this pull request to the merge queue Sep 28, 2023
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #12488 (59d8845) into main (48b8501) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #12488   +/-   ##
=======================================
  Coverage   69.41%   69.41%           
=======================================
  Files        1469     1469           
  Lines      240691   240691           
=======================================
+ Hits       167070   167072    +2     
+ Misses      73621    73619    -2     
Flag Coverage Δ
rust 69.41% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Merged via the queue into main with commit 6f099ae Sep 28, 2023
6 of 7 checks passed
@StrikeW StrikeW deleted the siyuan/citus-cdc branch September 28, 2023 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants