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: error message 'Error converting to int' on ddev import-db #5856

Merged
merged 2 commits into from Feb 21, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Feb 16, 2024

The Issue

I've been noticing in tests and in manual testing of ddev import-db the message "Error converting '' to int":

% ddev import-db --file=.tarballs/db.sql.gz
13.9MiB 0:00:01 [7.00MiB/s] [================================>] 100%
Error converting '' to int
Successfully imported database 'db' for d10

How This PR Solves The Issue

Allow empty and don't try to convert it to a zero. I'm not sure this is a change in go's behavior.

I was unable to find a replacement technique for this stanza. The original idea was to watch the rows come in until they stopped coming in. I don't see how to do that now. But I did my traditional huge database import-db and it seemed to work fine.

Manual Testing Instructions

  • ddev import-db shouldn't show this
  • Make sure ddev import-db is behaving OK on huge db import, which is what this code is for.

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

Copy link

github-actions bot commented Feb 16, 2024

@rfay
Copy link
Member Author

rfay commented Feb 17, 2024

The problem here is that Innodb_rows_inserted was removed in MariaDB 10.10, https://mariadb.com/kb/en/innodb-status-variables/#innodb_rows_inserted

@rfay rfay force-pushed the 20240216_remove_output_Error_converting_to_int branch from 24beb8a to a2a7b19 Compare February 17, 2024 18:38
@rfay rfay marked this pull request as ready for review February 17, 2024 22:30
@rfay rfay requested a review from a team as a code owner February 17, 2024 22:30
@stasadev stasadev self-requested a review February 19, 2024 11:28
@stasadev stasadev removed their assignment Feb 19, 2024
@rfay rfay changed the title fix: error message 'Error converting to int' fix: error message 'Error converting to int' on ddev import-db Feb 19, 2024
@rfay rfay merged commit ae1a18a into ddev:master Feb 21, 2024
31 of 32 checks passed
@rfay rfay deleted the 20240216_remove_output_Error_converting_to_int branch February 21, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants