Skip to content

state_store / checkpoint_dir does not handle invalid JSON (e.g. empty files) #3

@OEBBleo

Description

@OEBBleo

The state_store.py that is responsible for writing the checkpoint_dir under $SPLUNK_HOME/var/lib/splunk/modinputs/misp_*_input does not handle invalid JSON, including empty files.

This functionallity is for continuing partial or chunked ingestions.

When the state file is empty, due to a crash or potentially bad times restart; instead of interpreting this as "we don't have a saved state" and starting over a JSON parsing exception is not being handled.

json.load in state_store.py:get_state().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions