-
Notifications
You must be signed in to change notification settings - Fork 344
Boto Glue standard retry policy with configuration #1307
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
Conversation
configurable max retry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mark-major for raising this PR! I left some suggestions, LMKWYT!
pyiceberg/catalog/glue.py
Outdated
"max_attempts": get_first_property_value(properties, GLUE_MAX_RETRIES) | ||
if get_first_property_value(properties, GLUE_MAX_RETRIES) | ||
else MAX_RETRIES, | ||
"mode": "standard", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also make the mode configurable? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather not have that as an option. Standard mode is a more mature implementation compared to the legacy one.Adaptive mode is still considered 'experimental' which is not something I'd use in production.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to making it configurable just to future-proof.
Still set standard
as the default, but can be overridden if necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll make the mode configurable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mark-major We're almost there, are you interested in pushing this over the finish line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have pushed the changes, sorry for taking this long...
Co-authored-by: Fokko Driesprong <[email protected]>
Co-authored-by: Fokko Driesprong <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nit comments. Curious about the general direction we're taking for configuring the retry mechanism for catalogs. I'm leaning towards a standardized retry config for all catalogs, similar to the commit.retry
table configs https://iceberg.apache.org/docs/1.5.2/configuration/#table-behavior-properties
Curious to hear others' thoughts
| glue.access-key-id | admin | Configure the static access key id used to access the Glue Catalog | | ||
| glue.secret-access-key | password | Configure the static secret access key used to access the Glue Catalog | | ||
| glue.session-token | AQoDYXdzEJr... | Configure the static session token used to access the Glue Catalog | | ||
| glue.max-retries | 10 | Configure the maximum number of retries for the Glue service calls | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, should we add a retry property for each catalog? Or just use the default value in the table retry property?`
commit.retry.num-retries | 4 | Number of times to retry a commit before failing
https://iceberg.apache.org/docs/1.5.2/configuration/#table-behavior-properties
pyiceberg/catalog/glue.py
Outdated
"max_attempts": get_first_property_value(properties, GLUE_MAX_RETRIES) | ||
if get_first_property_value(properties, GLUE_MAX_RETRIES) | ||
else MAX_RETRIES, | ||
"mode": "standard", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to making it configurable just to future-proof.
Still set standard
as the default, but can be overridden if necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for following up on this 👍
* boto glue standard retry policy configurable max retry * Update configuration.md Co-authored-by: Fokko Driesprong <[email protected]> * Update glue.py Co-authored-by: Fokko Driesprong <[email protected]> * boto glue retry mode configurable --------- Co-authored-by: Fokko Driesprong <[email protected]>
* boto glue standard retry policy configurable max retry * Update configuration.md Co-authored-by: Fokko Driesprong <[email protected]> * Update glue.py Co-authored-by: Fokko Driesprong <[email protected]> * boto glue retry mode configurable --------- Co-authored-by: Fokko Driesprong <[email protected]>
* boto glue standard retry policy configurable max retry * Update configuration.md Co-authored-by: Fokko Driesprong <[email protected]> * Update glue.py Co-authored-by: Fokko Driesprong <[email protected]> * boto glue retry mode configurable --------- Co-authored-by: Fokko Driesprong <[email protected]>
* boto glue standard retry policy configurable max retry * Update configuration.md Co-authored-by: Fokko Driesprong <[email protected]> * Update glue.py Co-authored-by: Fokko Driesprong <[email protected]> * boto glue retry mode configurable --------- Co-authored-by: Fokko Driesprong <[email protected]>
Configurable retry mechanism for the Glue catalog Boto client.
standard
glue.max-retries
with default value set to 10Closes #1294