Further analysis:
from above stack trace, looking at function row_lock_table_autoinc_for_mysql (row0mysql.cc:651):
case DB_LOCK_TABLE_FULL: /* Roll back the whole transaction; this resolution was added to version 3.23.43 */
trx_rollback_to_savepoint(trx, NULL);
So, it looks like we hit some limit with locks?
DB_LOCK_TABLE_FULL, /*!< lock structs have exhausted the buffer pool (for big transactions, InnoDB stores the lock structs in the buffer pool) */
Further analysis:
from above stack trace, looking at function row_lock_ table_autoinc_ for_mysql (row0mysql.cc:651):
case DB_LOCK_TABLE_FULL:
/* Roll back the whole transaction; this resolution was added
to version 3.23.43 */
So, it looks like we hit some limit with locks?