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

TT-12780 prevent sql pump to panic when sharding enabled and skip api id is set #860

Merged

Conversation

sredxny
Copy link
Contributor

@sredxny sredxny commented Nov 20, 2024

Description

When using SQL pump, sharding enabled and skip api id is set then the array of data in the writeData function is empty, then prevent panic when looping over the array

Related Issue

TT-12780

Motivation and Context

How This Has Been Tested

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own
    fork, don't request your master!
  • Make sure you are making a pull request against the master branch (left side). Also, you should start
    your branch off our latest master.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
  • I have updated the documentation accordingly.
  • Modules and vendor dependencies have been updated; run go mod tidy && go mod vendor
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • go fmt -s
    • go vet

@sredxny sredxny requested a review from jeffy-mathew November 20, 2024 15:59
@sredxny sredxny merged commit fbcb614 into master Nov 27, 2024
30 of 31 checks passed
@sredxny sredxny deleted the TT-12780-bugfix/dont-crash-sql-pump-with-shard-and-skip-api branch November 27, 2024 14:37
@sredxny
Copy link
Contributor Author

sredxny commented Dec 4, 2024

/release to release-1.11

Copy link

tykbot bot commented Dec 4, 2024

Working on it! Note that it can take a few minutes.

tykbot bot pushed a commit that referenced this pull request Dec 4, 2024
… id is set (#860)

* prevent sql pump to panic when sharding enabled and skip api id is set

* revert doc change

---------

Co-authored-by: sredny buitrago <[email protected]>

(cherry picked from commit fbcb614)
Copy link

tykbot bot commented Dec 4, 2024

@sredxny Seems like there is conflict and it require manual merge.

sredxny added a commit that referenced this pull request Dec 4, 2024
… id is set (#860) (#862)

* prevent sql pump to panic when sharding enabled and skip api id is set

* revert doc change

---------

Co-authored-by: sredny buitrago <[email protected]>

(cherry picked from commit fbcb614)

Co-authored-by: Sredny M. <[email protected]>
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