Skip to content

Conversation

@ajm188
Copy link
Contributor

@ajm188 ajm188 commented Jan 30, 2026

The WriteChangelogState call at line 1365 was missing error handling, which could cause the migration to fail silently if the changelog table was not properly created. This manifested as a "Table doesn't exist" error later in the migration process.

All other calls to WriteChangelogState in the codebase properly check for errors, so I'm guessing this was just overlooked

A Pull Request should be associated with an Issue.

Relates to #1622. This doesn't actually solve "why didn't the changelog table get created in my migration" but it does handle the error when trying to write to that table.

We wish to have discussions in Issues. A single issue may be targeted by multiple PRs.
If you're offering a new feature or fixing anything, we'd like to know beforehand in Issues,
and potentially we'll be able to point development in a particular direction.

Related issue: https://github.com/github/gh-ost/issues/0123456789

Further notes in https://github.com/github/gh-ost/blob/master/.github/CONTRIBUTING.md
Thank you! We are open to PRs, but please understand if for technical reasons we are unable to accept each and any PR

Description

This PR [briefly explain what it does]

In case this PR introduced Go code changes:

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

The WriteChangelogState call at line 1365 was missing error handling,
which could cause the migration to fail silently if the changelog table
was not properly created. This resulted in cryptic "Table doesn't exist"
errors later in the migration process.

All other calls to WriteChangelogState in the codebase properly check
for errors. This change makes error handling consistent and provides
clearer error messages when changelog table operations fail.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@meiji163
Copy link
Contributor

Thanks for catching that!

@meiji163 meiji163 merged commit a1e9c9d into github:master Jan 30, 2026
9 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