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

Reduce DN IO times when writeChunk (FilePerBlockStrategy)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      In the FilePerBlockStrategy#writeChunk will generate twice IO process.

      • The first is to check whether the write operation is an overwrite, will check whether the chunk file is exist (ChunkUtils#verifyChunkFileExists).
      • The second is write Chunk, will open file and write file.

      Those two IO operation can merge to once. just need to check whether is overwrite after open file and before write Chunk

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            XiChen ChenXi
            XiChen ChenXi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment