Utf8Error on dump create
Database: MariaDB Version: 10.5.15 Character set: Utf8mb4
Command cat dump.sql | replibyte -c replibyte.yaml dump create -i -s mysql return this error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 950246712, error_len: Some(1) }', /root/src/dump-parser/src/utils.rs:74:70
Dump Command:
mysqldump -h XXX -u XXX -p --add-drop-database --add-drop-table --skip-extended-insert --complete-insert --single-transaction --quick --column-statistics=0 --default-character-set=utf8mb4 db > dump.sql
- I tried dump with
--default-character-set=utf8and i got the same error. - I tried with and without transformer and i got the same error.
Hi @charlyhue , what's your operating system?
Hi @evoxmusic I'm on Macos 12.15.1 (arm). I have the same error on Amazon Linux 2.
Hi @evoxmusic, do you have any update?
Would it be possible to handle the error by continueing? This is the relevant line, note the fixme. I can submit a PR if you could confirm @evoxmusic - I'm also affect by this
Hi, yes can you provide a PR and I will adjust if needed
PR ready 🙂