Skip to content

Conversation

@Markus99999
Copy link

@Markus99999 Markus99999 commented Sep 22, 2021

The Klarna module introduced changes to the logging of API requests. In db_schema.xml the primary key was set to smallint (signed), which means the table can only handle 32767 records. When the table becomes full, the checkout fails to load due to a unique contraint violation error (which can be traced back to not being able to add any more records to the log table), resulting in a blank page.

This fix will increase the number of possible entries for the Klarna requests logging table. Hence, the checkout won't fail to load anymore. The amount of possible entries is going from 32767 to 4294967295 rows.

It also fixes a malformed select query, that is triggered via a cron job, which is supposed to clean up this table from entries older than x days. The query contained a where condition on a column store_id, but that column does not exist on the table.

Fixed Issues

https://jira.int.klarna.net/jira/browse/MAGE-3381

@viktym
Copy link
Contributor

viktym commented Sep 22, 2021

@m2-github-services
Copy link
Collaborator

@viktym the Pull Request is successfully imported.

@viktym viktym closed this Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants