silverbullet1
09/04/2023, 5:44 PMedgar_ramirez_mondragon
09/04/2023, 7:20 PMmeltano --version
)
• Tap and target if they're public (in the Hub or a public repo)
• The command that failedsilverbullet1
09/04/2023, 7:57 PMsilverbullet1
09/04/2023, 8:06 PMuser
09/04/2023, 10:45 PMruns
table.
Which variant of target-postgres are you using?silverbullet1
09/05/2023, 3:14 AMsilverbullet1
09/10/2023, 4:24 PMsilverbullet1
09/11/2023, 10:05 AM2023-09-09, 08:03:01 UTC] {pod_launcher.py:159} INFO - [2m2023-09-09T08:03:01.405343Z[0m [[32m[1minfo [0m] [1msmart_open.s3.MultipartWriter('mybucket', 'meltano-state/dev:tap-redshift-to-target-postgres/lock'): uploading part_num: 1, 17 bytes (total 0.000GB)[0m
[2023-09-09, 08:03:01 UTC] {pod_launcher.py:159} INFO - [2m2023-09-09T08:03:01.552417Z[0m [[32m[1minfo [0m] [1msmart_open.s3.MultipartWriter('mybucket', 'meltano-state/dev:tap-redshift-to-target-postgres/state.json'): uploading part_num: 1, 50 bytes (total 0.000GB)[0m
[2023-09-09, 08:03:01 UTC] {pod_launcher.py:159} INFO - [2m2023-09-09T08:03:01.837343Z[0m [[32m[1minfo [0m] [1mIncremental state has been updated at 2023-09-09 08:03:01.837211.[0m
[2023-09-09, 08:03:01 UTC] {pod_launcher.py:159} INFO - [2m2023-09-09T08:03:01.852097Z[0m [[31m[1merror [0m] [1mExtractor failed[0m
[2023-09-09, 08:03:01 UTC] {pod_launcher.py:159} INFO - [2m2023-09-09T08:03:01.852510Z[0m [[31m[1merror [0m] [1mBlock run completed. [0m [36mblock_type[0m=[35mExtractLoadBlocks[0m [36merr[0m=[35mRunnerError('Extractor failed')[0m [36mexit_codes[0m=[35m{<PluginType.EXTRACTORS: 'extractors'>: -9}[0m [36mset_number[0m=[35m0[0m [36msuccess[0m=[35mFalse[0m
[
silverbullet1
09/11/2023, 10:06 AMuser
09/11/2023, 3:57 PM{"type": "SCHEMA", "schema": ...}
{"type": "RECORD", "record": ...}
{"type": "STATE", ...}
Not valid JSON
If that results in the target generating a bad bookmark, then it's definitely a bug in the target (and maybe the tap if it's outputting a similar invalid line under some circumstances)silverbullet1
09/12/2023, 9:34 AMuser
09/12/2023, 1:49 PMprint(...)
in your tapsilverbullet1
09/21/2023, 6:26 PMUnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 122: unexpected end of data
. Just to clarify, I did not have any state in my local. Here is the complete log:silverbullet1
09/21/2023, 6:26 PMuser
09/21/2023, 9:43 PM>>> str(b"\xf0", "utf-8")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 0: unexpected end of data
https://github.com/aws/amazon-redshift-python-driver/blob/a898554b4dde2cdc6a1c6214eb43b92e36540bcf/redshift_connector/utils/type_utils.py#L60-L61silverbullet1
09/21/2023, 10:09 PMsilverbullet1
09/22/2023, 5:42 AMsilverbullet1
09/22/2023, 10:53 AMdiscovery
, other times while fetching table from connector. We will have to patch at a lot of places.
The other place is on the job level, which we already have. The only problem which is not clear to me is why the state is being written to {}
when this problem occurs. If that is fixed then job level retry will fix the problem!edgar_ramirez_mondragon
09/22/2023, 5:59 PMsilverbullet1
09/22/2023, 6:27 PMsilverbullet1
09/22/2023, 8:43 PMedgar_ramirez_mondragon
09/23/2023, 1:14 AM