GitHub
05/14/2025, 5:46 PMwriteline method in src/meltano/core/plugin/singer/target.py. The change ensures that only valid states are saved, preventing potential overwrites of existing valid states when the incoming state message is incorrect (which makes new state empty).
Here is an example of this failure in logs (extraction failed after it and state was empty):
2025-04-21T16:14:46.146989Z [warning ] Received state is invalid, incremental state has not been updated
2025-04-21T16:14:46.215886Z [info ] Incremental state has been updated at 2025-04-21 16:14:46.215847+00:00.
+ meltano state get STATE_ID
{"singer_state": {}}
## Related Issues
• Closes #XXXX
meltano/meltanoGitHub
05/14/2025, 5:46 PMGitHub
05/14/2025, 6:48 PMGitHub
05/14/2025, 9:39 PM