Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StaleStateException when high contention on OutlierDetectionService.identifyOutlierByMedianCorrelation #400

Closed
1 task
arteymix opened this issue Aug 4, 2022 · 2 comments
Labels
bug database Issues that involve the database

Comments

@arteymix
Copy link
Member

arteymix commented Aug 4, 2022

  • add a test case to reproduce the issue
@arteymix arteymix added bug database Issues that involve the database labels Aug 4, 2022
@arteymix arteymix added this to the 1.28.0 milestone Aug 4, 2022
arteymix added a commit that referenced this issue Aug 4, 2022
…gent transaction isolation level

This essentially locks the database to prevent dirty read. It's not
ideal, but it fixes the problem in a definite manner.

Revert some changes in 4cfb329 since we
don't need to deal with StaleStateException anymore.

Relates to #400.
arteymix added a commit that referenced this issue Aug 4, 2022
…gent transaction isolation level

This essentially locks the database to prevent dirty read. It's not
ideal, but it fixes the problem in a definite manner.

Revert some changes in 4cfb329 since we
don't need to deal with StaleStateException anymore.

Relates to #400.
arteymix added a commit that referenced this issue Aug 4, 2022
…gent transaction isolation level

This essentially locks the database to prevent dirty read. It's not
ideal, but it fixes the problem in a definite manner.

Revert some changes in 4cfb329 since we
don't need to deal with StaleStateException anymore.

Relates to #400.
@arteymix
Copy link
Member Author

arteymix commented Aug 4, 2022

This problem has been mitigated by using the serializable isolation level which essentialy locks the database while outliers are being computed. Not ideal, but it works. I'll keep this issue open to find a better solution.

@arteymix
Copy link
Member Author

arteymix commented Aug 8, 2023

Fixed in 14588b6. We don't compute outliers on-the-fly anymore.

ppavlidis added a commit that referenced this issue Feb 23, 2024
…ransaction

As discussed in #400
For large data sets, it could still run into trouble. Moving the main data reading part to a read-only transaction should help.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug database Issues that involve the database
Projects
None yet
Development

No branches or pull requests

1 participant