ArafatKhan2198 opened a new pull request, #9629:
URL: https://github.com/apache/ozone/pull/9629

   ## What changes were proposed in this pull request?
   The test testKeyCountsForValidAndInvalidKeyPrefix sometimes fails with 
"Rocks Database is closed" when trying to clear a database table.
   Why it happens:
   The test creates a new database before each test run.
   It immediately tries to clear a table.
   Sometimes the database isn’t fully ready yet, or it gets closed during setup.
   The code that clears the table doesn’t handle a closed database, so it 
crashes.
   The fix:
   Updated the clear-table code to detect a closed database.
   If the database is closed, log a warning and skip clearing (instead of 
crashing).
   Still throw other errors so real problems aren’t hidden.
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-14210
   
   ## How was this patch tested?
   


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

Reply via email to