Skip to content

Implement IDisk interface for HDFS#11058

Merged
kssenii merged 55 commits intoClickHouse:masterfrom
overshov:master
May 26, 2021
Merged

Implement IDisk interface for HDFS#11058
kssenii merged 55 commits intoClickHouse:masterfrom
overshov:master

Conversation

@overshov
Copy link
Copy Markdown

@overshov overshov commented May 20, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add support for VFS over HDFS.

@kssenii kssenii changed the title WIP Implement IDisk interface for HDFS Implement IDisk interface for HDFS Apr 22, 2021
@kssenii
Copy link
Copy Markdown
Member

kssenii commented Apr 22, 2021

@Jokser, I moved some common part of disks s3 / hdfs into separate interface (only part related to metadata and clickhouse side methods), please take a look.

@Jokser
Copy link
Copy Markdown
Contributor

Jokser commented Apr 22, 2021

@kssenii I will take look at that next week, but I prefer to merge it after this PR (#23429). It contains useful Read/Write buffer refactoringings for S3.

@kssenii
Copy link
Copy Markdown
Member

kssenii commented May 14, 2021

@Jokser, hi, please don't forget to take a look.

Copy link
Copy Markdown
Contributor

@Jokser Jokser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall DiskHDFS looks very similiar to DiskS3.
I see only 3 things that have different implementations:

  1. Create ReadBuffer
  2. Create WriteBuffer
  3. Remove file

I think that common part including (Read/Write) IndirectBuffers can be extracted to DiskRemote.

Copy link
Copy Markdown
Contributor

@Jokser Jokser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. Only minor issues remain.

@kssenii kssenii merged commit cb8af0f into ClickHouse:master May 26, 2021
@sevirov
Copy link
Copy Markdown
Contributor

sevirov commented Jul 10, 2021

Internal documentation ticket: DOCSUP-11416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Pull request with new product feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants