-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: generate random index name for change streams #32689
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a11e393
fix: generate random index name for change streams
thiagotnunes 6cc13ca
refactor: config -> names
thiagotnunes e8533cb
fix: checkstyle
thiagotnunes 20d3dd3
fix: checkstyle test
thiagotnunes e8188a6
fix: makes new class serializable
thiagotnunes 3038409
Merge branch 'master' of https://github.com/apache/beam into fix-meta…
thiagotnunes 48b5ea6
fix: name generation
thiagotnunes 6fcc3c2
fix: drops indexes from metadata table
thiagotnunes ba4e3d1
refactor: refactor name generator
thiagotnunes 3df479e
fix: always generates index names
thiagotnunes 5049588
feat: considers schema in index discovery query
thiagotnunes e5e49a3
Merge branch 'master' of https://github.com/apache/beam into fix-meta…
thiagotnunes 1f12a1e
Merge branch 'master' of https://github.com/apache/beam into fix-meta…
thiagotnunes 86e2e93
fix: address pr comments
thiagotnunes d8b8881
test: fix PartitionAdminDaoTest
thiagotnunes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
...latform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/NameGenerator.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this method fail if the tables/indexes already exist?
IIUC the issue correctly this is failing currently because the index has the same name across pipelines and the creation is failing. Do we also have to worry about a single pipeline failing if it created the tables but Dataflow retries the work? It seems we might want ot use create if it doesn't exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Since the names have a random component, I assumed the job would fail and we would re-generate them.
Updated with IF NOT EXISTS to circumvent this problem.