<#3040 fix: Avoid emitting empty state value from ...
# meltano-repo-activity
g
#3040 fix: Avoid emitting empty state value from target Pull request opened by joaopamaral In some cases, a target may emit an empty state, which can lead to unexpected behavior when saving the state. Specifically, this could result in a previously valid state being overwritten, potentially causing state loss. This fix ensures that empty states will not be emitted. Here is some examples of empty state being emitted bythe target:
Copy code
| INFO     | target-hdfs          | Emitting completed target state {}
## Summary by Sourcery Avoid emitting and processing empty state messages to prevent overwriting valid states and potential state loss. Bug Fixes: • Skip processing state messages when the state is empty. • Do not emit empty state messages in drain_all(). meltano/sdk