Skip to content

Implement NameNode functions and tests - #4

Open
CheeksTheGeek wants to merge 1 commit into
masterfrom
complete-namenode
Open

CheeksTheGeek wants to merge 1 commit into
masterfrom
complete-namenode

Conversation

@CheeksTheGeek

Copy link
Copy Markdown
Owner
  • NameNode functions

    • Implement block_size to handle client requests and return block size or error
    • Implement read_file to handle client requests, retrieve file blocks, and return block addresses
    • Implement write_file to handle client requests, calculate number of blocks, and assign blocks
    • Implement phoenixing to handle client requests, log dead data nodes, and attempt re-replication
    • Implement assign_blocks_for_file to initialize FileNameToBlocks map, assign data nodes, and return block addresses
  • Tests

    • Create tests for block_size, read_file, write_file, phoenixing, and assign_blocks_for_file functions

* **NameNode functions**
  - Implement `block_size` to handle client requests and return block size or error
  - Implement `read_file` to handle client requests, retrieve file blocks, and return block addresses
  - Implement `write_file` to handle client requests, calculate number of blocks, and assign blocks
  - Implement `phoenixing` to handle client requests, log dead data nodes, and attempt re-replication
  - Implement `assign_blocks_for_file` to initialize FileNameToBlocks map, assign data nodes, and return block addresses

* **Tests**
  - Create tests for `block_size`, `read_file`, `write_file`, `phoenixing`, and `assign_blocks_for_file` functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant