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

[COST-4440] Warn when a partition already exists for OCP processing #4838

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

samdoran
Copy link
Contributor

@samdoran samdoran commented Dec 14, 2023

Jira Ticket

COST-4440

Description

Catch a Trino exception and log it.

This appears to be a problem only with OCP processing and only when two workers are running the same workload practiaclly at the same exact time. This may indicate a problem with our worker caching not preventing simultaneous execution, or a problem with celery allowing duplicate tasks to run. We don’t have enough information to determine that currently.

Since this is isolated to OCP processing, I fixed it only in the OCP processing instead of making changes to update_summary_tables, which would affect all provider types.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Merging #4838 (91850f7) into main (5cc2278) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4838   +/-   ##
=====================================
  Coverage   94.0%   94.0%           
=====================================
  Files        364     364           
  Lines      30204   30210    +6     
  Branches    3598    3599    +1     
=====================================
+ Hits       28383   28390    +7     
  Misses      1161    1161           
+ Partials     660     659    -1     

@samdoran samdoran force-pushed the COST-4440/trino-partition-already-exists branch 2 times, most recently from a448c1c to cec8370 Compare December 14, 2023 20:54
@samdoran samdoran added the smoke-tests pr_check will build the image and run minimal required smokes label Dec 19, 2023
This appears to be a problem only with OCP processing and only when two workers
are running the same workload practiaclly at the same exact time. This may
indicate a problem with our worker caching not preventing simultaneous
execution, or a problem with celery allowing duplicate tasks to run. We don’t
have enough information to determine that currently.

Since this is isolated to OCP processing, I fixed it only in the OPC processing
instead of making changes to update_summary_tables, which would affect all
provider types.
@samdoran samdoran force-pushed the COST-4440/trino-partition-already-exists branch from cec8370 to 2911e6c Compare December 19, 2023 19:03
@samdoran samdoran force-pushed the COST-4440/trino-partition-already-exists branch from 8ac380d to a5d0d5c Compare December 19, 2023 19:45
We can Exception before raising TrinoStatementExecError, so it may not have the
expected attributes.
@samdoran samdoran force-pushed the COST-4440/trino-partition-already-exists branch from a5d0d5c to 91850f7 Compare December 19, 2023 19:59
@samdoran samdoran enabled auto-merge (squash) December 19, 2023 20:04
Copy link

sonarcloud bot commented Dec 19, 2023

@samdoran samdoran merged commit e01b5ce into main Dec 19, 2023
10 checks passed
@samdoran samdoran deleted the COST-4440/trino-partition-already-exists branch December 19, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke-tests pr_check will build the image and run minimal required smokes smokes-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants