-
Notifications
You must be signed in to change notification settings - Fork 127
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
thread 'main' panicked at 'called Option::unwrap()
on a None
value'
#134
Comments
Hi @marigbede , thanks for the report. Can you reformat your yaml conf file? |
@evoxmusic Thanks for picking this up. Please see this attached file. |
Thx, here is the content source:
connection_uri: REDACTED
transformers:
- database: public
table: users
columns:
- name: full_name
transformer_name: random
datastore:
gcp:
bucket: REDACTED
region: us-west1
access_key: REDACTED
secret: REDACTED
destination:
connection_uri: REDACTED |
@evoxmusic its looking as if the code crashes when NONE is encountered in the database. Is this the same experience you have? |
So @evoxmusic I have bene able to trace this back here Replibyte/replibyte/src/source/postgres.rs Line 289 in a8c56df
From the tests that I performed showed that even without the transforms config, the issue still occurs. |
I am running into the same error when attempting to dump data from Postgres to S3 with no transformers. My config file:
I am starting Replibyte using Docker: The stacktrace:
|
Hi @evoxmusic any updates on this? |
Unfortunately, I am super busy for this week and the week after (Qovery new release). I keep you posted, I promise I don't forget :) |
Hi @evoxmusic and @marigbede |
Hi @marigbede and @spatail |
Hi @marigbede @spatail - if you can share your dumps with @fabriceclementz it will help a lot 👍🏽 |
Hi @fabriceclementz @evoxmusic, thanks for taking a look at this. Unfortunately I don't have any dumps to share as this happens before any dump data is written to S3. The only thing created in S3 before the error is a file called
Let me know if I can provide anything else. I can try rebuilding the docker image from the pull-request with the fix and see if that gets me further. |
Upon inspecting the dump file, I see data from both schemas. However, it looks like the dump is just incomplete, i.e. there should be multiple dump files, but only one file is ever written to S3. The database at the moment is ~ 1GB in size. Could the progress stoppage be related to data size? |
@spatail any luck with the dump creation being stuck, I am seeing same behavior after ~750MBs downloaded. |
Hi @spatail and @evoxmusic. Nice work on the updates. Now the error is getting a bit more defined. What does this mean? |
It seems that replibyte is having some issues with None values in the database. Is there a workaround for this?
thread 'main' panicked at 'called
Option::unwrap()on a
Nonevalue', replibyte/src/source/postgres.rs:288:48 stack backtrace: 0: rust_begin_unwind at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5 1: core::panicking::panic_fmt at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14 2: core::panicking::panic at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:48:5 3: replibyte::source::postgres::transform_columns 4: replibyte::source::postgres::read_and_transform::{{closure}} 5: dump_parser::utils::list_sql_queries_from_dump_reader 6: <replibyte::source::postgres::Postgres as replibyte::source::Source>::read 7: <replibyte::tasks::full_dump::FullDumpTask<S> as replibyte::tasks::Task>::run 8: replibyte::commands::dump::run 9: replibyte::main
My yaml is below. Please note that REDACTED replaced actual values.
source: connection_uri: REDACTED transformers: - database: public table: users columns: - name: full_name transformer_name: random datastore: gcp: bucket: REDACTED region: us-west1 access_key: REDACTED secret: REDACTED destination: connection_uri: REDACTED
The command is
./replibyte -c /local/replibyte_config.yaml dump create
The text was updated successfully, but these errors were encountered: