Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7259

Fix uncounted blocksDeleted in BlockDeletingService

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None

    Description

      If the block info is null, then blocksDeleted is not increased and the numPendingDeletionBlocks then will not be decreased.

      During ```chooseContainerForBlockDeletion```, all containers with such inexistent blocks will still be chosen, and normal block deletion will be blocked.

       

      TODO:

      Besides this, if deletion of certain block retries exceeds a certain number of times, the service should skip deleting it, otherwise invalid numPendingDeletionBlocks could accumulate beyond the limit and the following deletion will also stop. We should add this as a protection mechianism

      Attachments

        Issue Links

          Activity

            People

              Nibiruxu Xu Shao Hong
              Nibiruxu Xu Shao Hong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: