dentiny opened a new pull request, #1474: URL: https://github.com/apache/iceberg-rust/pull/1474
## What changes are included in this PR? Iceberg supports retry on commit: https://iceberg.apache.org/docs/latest/configuration/#table-behavior-properties To implement retry, I would like to commit on a cloned transaction. Old code without retry: ```rs let action = txn.fast_append(); let action = action.add_data_files(data_file_import_result.new_iceberg_data_files); txn = action.apply(txn)?; txn.commit(catalog) ``` New code with retry: ```rs // Apply all changes. let action = txn.fast_append(); let action = action.add_data_files(data_file_import_result.new_iceberg_data_files); txn = action.apply(txn)?; // Perform commit with retry. while count < max_retry && time < max_timeout { let txn_copy = txn.clone(); txn.commit(catalog) // commit takes `mut self`, have to make a clone } ``` ## Are these changes tested? No op change, but compilation and existing tests all pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
