The prepare commit leaves the history store entry as unresolved when a prepared update is inserted and removed by the same prepared transaction.
Earlier we never write the same transaction prepared update and tombstone to the disk. The tombstone is added to the previous update, but later it is changed to move all the squash logic into the history store lead to this error.
The fix is to allow fixing the history store entry even for commit operation also.