this would only make sense if the inactivity occurs while a database connection is checked out from the connection pool. Such as, you have a Session object, you've emitted some SQL on it, and it has not been closed with .close(). attempting to use the connection after 8 hours would raise an error. if the application has been constructed to catch this exception and silently reconnecting, you could observe issues with parts of the "transaction" being lost.
that all sounds fairly unlikely though. if pool_recycle is in use, and the new activity at the end of the 8 hour period is that the pool is accessed, the DB connection is recycled and a new one returned, then the new connection has two INSERT statements emitted, there should certainly not be any loss of consistency for that. you'd need to log the SQL and look at what's transpired.