We have one session running in per-thread which creates and processing multiple records in one table which have id as auto increment. While processing we are flushing data and at the end of thread we are committing it but if some exception occurs we rollback the current session in that thread.
So, how auto increment will work as in case of flush vs commit and if in mid it will rollback what will happen to auto increment id?
I have tried to find details on it but didn't find anything. Please help!!