You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "krisnaru (via GitHub)" <gi...@apache.org> on 2025/10/13 18:09:51 UTC

[I] Instrument more logging and/or metrics for Iceberg expire snapshots function [iceberg]

krisnaru opened a new issue, #14319:
URL: https://github.com/apache/iceberg/issues/14319

   ### Feature Request / Improvement
   
   ### Description:
   
   We need to add comprehensive logging and metrics instrumentation to the Iceberg expire snapshots functionality to help diagnose and prevent production issues where the expire snapshot job deletes more files than expected.
   
   ### Background:
   
     We encountered a production issue (ref: rdar://150184689) where an expire snapshot job deleted significantly more files than expected (10,696 files
     instead of 1,590), making the table unreadable and causing queries to fail with java.io.FileNotFoundException: File does not exist.
   
   ### Requirements:
   
     1. Enhanced Logging:
       - Log the list of files being deleted during snapshot expiration
       - Log the reason for each data file why it was marked for deletion
       - Provide sufficient instrumentation to trace the root cause of unexpected file deletions
     2. Metrics:
       - Track the number of files being deleted
       - Monitor snapshot expiration operations
       - Alert on anomalies in deletion patterns
   
   ###   Exit Criteria:
     When expiring snapshots, log the files being deleted with detailed reasoning for each file's deletion.
   
   ### Query engine
   
   Spark
   
   ### Willingness to contribute
   
   - [x] I can contribute this improvement/feature independently
   - [x] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
   - [ ] I cannot contribute this improvement/feature at this time


-- 
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: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Instrument more logging and/or metrics for Iceberg expire snapshots function [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14319:
URL: https://github.com/apache/iceberg/issues/14319#issuecomment-4230442744

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Instrument more logging and/or metrics for Iceberg expire snapshots function [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #14319: Instrument more logging and/or metrics for Iceberg expire snapshots function
URL: https://github.com/apache/iceberg/issues/14319


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Instrument more logging and/or metrics for Iceberg expire snapshots function [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14319:
URL: https://github.com/apache/iceberg/issues/14319#issuecomment-4320906409

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org