vargacypher opened a new issue, #46555:
URL: https://github.com/apache/airflow/issues/46555

   ### Apache Airflow Provider(s)
   
   amazon
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-amazon==8.10.0
   
   
   ### Apache Airflow version
   
   2.7.3
   
   ### Operating System
   
   Composer 2.8.5
   
   ### Deployment
   
   Google Cloud Composer
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   A few weeks ago, we encountered a problem while creating an RDS snapshot. 
Something changed in the validation of the snapshot configuration inputs, and 
it now checks the **s3_prefix** name.
   
   ### How We Discovered It ? 
   
   We have several DAGs that create RDS database snapshots and export them to 
S3. On one fateful day (2025-01-24), we ran into a problem because all these 
DAGs, which run after hours, were stuck in the RdsExportTaskExistenceSensor 
(with no timeout defined).  Upon checking the AWS console, we saw that the 
exports had failed. We were using s3_prefix="snapshots/{{ts_nodash}}/" with a 
trailing slash, and this caused the failure, as shown in the screenshot.
   
   
![Image](https://github.com/user-attachments/assets/863e8678-dc5c-4beb-8fc2-b76f39f03aa6)
   
   After updating s3_prefix removing the ended backslash, it work as expected.
   ```python
           - s3_prefix="snapshots/{{ts_nodash}}/",
           + s3_prefix="snapshots/{{ts_nodash}}",
   ```
   
   ### What you think should happen instead
   
   RdsExportTaskExistenceSensor should raise and exception if an error statuses 
happens.
   
   ### How to reproduce
   
   Our DAG uses the following logic
   
   RdsCreateDbSnapshotOperator >> RdsSnapshotExistenceSensor >> 
RdsStartExportTaskOperator >> RdsExportTaskCompleteSensor >> .....
   
   if **s3_prefix** in RdsStartExportTaskOperator has trailing backslash it 
will faill and RdsExportTaskCompleteSensor will not complete and  Run 
indeterminate if timeout is not defined.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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]

Reply via email to