Problem with increment when changing cuba.numberIdCacheSize

Possible bug while inserting rows into entity with auto generated long or integer ID.When cuba.numberIdCacheSize has its default value (100) everything seems to work fine.
With another value (I tested with 1 or 10) after inserting more than 10 rows into the entity the sequence is not incremented.
And after an application restart for example and another attempt to insert new rows - you will get the “primary key violation error”.

Please make sure that you have changed this property for both client and middle tier (i.e. for app and app-core). All properties defined in the global module have to be changed on all tiers.