Lab for MIT6.824
测试结果如下:
$ bash test-mr.sh
*** Starting wc test.
--- wc test: PASS
*** Starting indexer test.
--- indexer test: PASS
*** Starting map parallelism test.
--- map parallelism test: PASS
*** Starting reduce parallelism test.
--- reduce parallelism test: PASS
*** Starting job count test.
--- job count test: PASS
*** Starting early exit test.
--- early exit test: PASS
*** Starting crash test.
--- crash test: PASS
*** PASSED ALL TESTS
整个系统中 worker
和 coordinator
的交互状态包含下图所示的一系列情况:
本项目实际实现的代码在src/mr目录下,分别对应
coordinator
、worker
和 RPC
通信过程。详细的实现过程参见MIT6.824 Lab1