State tracker file update - JDBC input plugin

Would like to know when the state tracker file get's updated. We are using the jdbc input plugin and modified date from the table has been used as the state tracker field. Would like to know when the state tracker files gets updated - Is it when the record has been read or the records have been indexed into elasticsearch and then after receiving the acknowledgement from elasticsearch.

The file is updated when the SQL statement is successfully executed. The input cannot know what filters or outputs its events will be sent to, so it cannot know that you intend to index them.

Thank you.