GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add incremental export and cross account export functionality in `DynamoDBToS3Operator` by Ghoul-SSZ · Pull Request #41304 · apache/airflow ConversationProblem
Proposed Changes
closes: #40737 ^ Add meaningful description above
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator
eladkal
reviewed
Uh oh!
There was an error while loading. Please reload this page. DynamoDBToS3Operator
…ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator
vincbeck
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very nice work!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. …ty-for-DynamoDBToS3Operator
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator …ty-for-DynamoDBToS3Operator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
vincbeck
reviewed
Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
I resolved the doc building issue. Now, there is one unit test (Kubernetes provider) that is failing. It is definitely not related to this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
But I am not sure what is going on either .... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
yeah it is strange. I will also try to look at it tomorrow when I have time |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It has been fixed in #41500, please rebase your PR :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ty-for-DynamoDBToS3Operator
All checks have passed! 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This change has caused the test to start failing. I have found at least three issues; two I have left the fix for in the comments, the third I'm not sure yet. @Ghoul-SSZ - can you have a look and try to make the fixes?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| export_time, | ||
| backup_db_to_point_in_time, | ||
| backup_db_to_point_in_time_full_export, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Insert latest_export_time between these two lines
export_time,
latest_export_time
backup_db_to_point_in_time_full_export,
Without it listed in the chain(), it fires off at the very beginning and causes the test to fail because env_id isn't populated yet.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed in #41517
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self.point_in_time_export = point_in_time_export | ||
| self.export_time = export_time | ||
| self.export_format = export_format | ||
| self.export_table_to_point_in_time_kwargs = export_table_to_point_in_time_kwargs |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
this needs to be
self.export_table_to_point_in_time_kwargs = export_table_to_point_in_time_kwargs or {}
otherwise if None is passed in, Line 199 fails because None can't be unpacked.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed in #41517
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| "ExportFromTime": export_time, | ||
| "ExportToTime": latest_export_time, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is an issue I have run out of time for today. with the other two fixes applied locally, the test keeps failing and I've tried a number of solutions. Here's what I've found so far:
error: "from" time can't be equal to "to" time
tried: so I set "from" to export_time - 1_minute
error: "from" can't be less than table creation time
tried: revert the above and set "to" to be latest_export_time + 1_minute
error: Difference between "from" time and "to" is less than 15 minutes
tried: revert the above and set "to" to be latest_export_time + 16_minutes
error: "to" time cannot be greater than the current time
tried: revert the above and set "to" time to utcnow()
error: this gets set at parse time and "to" time is now in the past
We will either need to figure out a way to make this happy or set that task to not run using an unreachable trigger_rule or a branch operator to skip it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
"error: Difference between "from" time and "to" is less than 15 minutes" is the most scary. That means we need to wait for 15 minutes so that we can create the incremental export. In that case we dont want to run it as part of the system test, so either we delete it from the system test, or we, somehow, skip it
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I agree. I just put up #41546 which skips that task. That way we can still have the snippet in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…amoDBToS3Operator` (apache#41304) --------- Co-authored-by: Vincent <[email protected]>
…amoDBToS3Operator` (apache#41304) --------- Co-authored-by: Vincent <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
DynamoDBToS3Operator using native export functionality.
There was an error while loading. Please reload this page.