Replibyte icon indicating copy to clipboard operation
Replibyte copied to clipboard

Utf8Error on dump create

Open charlyhue opened this issue 3 years ago • 3 comments

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=utf8 and i got the same error.
  • I tried with and without transformer and i got the same error.

charlyhue avatar Aug 26 '22 14:08 charlyhue

Hi @charlyhue , what's your operating system?

evoxmusic avatar Aug 26 '22 17:08 evoxmusic

Hi @evoxmusic I'm on Macos 12.15.1 (arm). I have the same error on Amazon Linux 2.

charlyhue avatar Aug 29 '22 07:08 charlyhue

Hi @evoxmusic, do you have any update?

charlyhue avatar Sep 08 '22 09:09 charlyhue

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

sondrelg avatar Nov 07 '22 13:11 sondrelg

Hi, yes can you provide a PR and I will adjust if needed

evoxmusic avatar Nov 07 '22 23:11 evoxmusic

PR ready 🙂

sondrelg avatar Nov 08 '22 08:11 sondrelg