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

[Python] Add warning to temp_location and staging_location when the bucket has soft delete enabled #31550

Merged
merged 8 commits into from
Jun 10, 2024

Conversation

shunping
Copy link
Contributor

@shunping shunping commented Jun 8, 2024

@address #31330 for Python SDK

@github-actions github-actions bot added the python label Jun 8, 2024
@shunping shunping force-pushed the check-soft-delete-on-temp-python branch from 49fd5ea to 9788a48 Compare June 8, 2024 00:40
@shunping shunping marked this pull request as draft June 8, 2024 00:47
@shunping shunping force-pushed the check-soft-delete-on-temp-python branch from d3f3f4c to 366ee11 Compare June 8, 2024 00:51
@shunping shunping marked this pull request as ready for review June 8, 2024 00:55
@shunping
Copy link
Contributor Author

shunping commented Jun 8, 2024

R: @Abacn

Copy link
Contributor

github-actions bot commented Jun 8, 2024

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@shunping shunping force-pushed the check-soft-delete-on-temp-python branch from a94c1cb to c68709c Compare June 9, 2024 00:36
@shunping shunping force-pushed the check-soft-delete-on-temp-python branch 2 times, most recently from 654b29d to 161fac9 Compare June 10, 2024 16:45
@shunping shunping force-pushed the check-soft-delete-on-temp-python branch from 161fac9 to 3e2623f Compare June 10, 2024 16:46
@Abacn
Copy link
Contributor

Abacn commented Jun 10, 2024

We can encode this warning in beam for this particular setting. However in general we should think about whether this kind of billing warning is suitable in beam code, or more suitable to be emitted elsewhere (like Dataflow recommendation).

afaik there are also other "trap" GCS settings that could bleed billing:

  • enable versioning (deleted/overwritten objects still billing)

  • use archive (incurring early deletion fee)

and there might be more.

Ideally dataflow service side recommendation would be more versatile than the SDK side encoded warning

@Abacn Abacn merged commit 500ca17 into apache:master Jun 10, 2024
89 checks passed
shunping added a commit to shunping/beam that referenced this pull request Jun 12, 2024
…ucket has soft delete enabled (apache#31550)

* Add warning if soft delete is enabled in temp or staging buckets.
kennknowles added a commit that referenced this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants