http://rccodereview.appspot.com/35001/diff/1/5 File src/MasterServer.cc (right): http://rccodereview.appspot.com/35001/diff/1/5#newcode319 src/MasterServer.cc:319: *status = STATUS_TABLE_DOESNT_EXIST; It doesn't appear that this path ...
13 years, 6 months ago
(2011-05-22 22:33:16 UTC)
#1
http://rccodereview.appspot.com/35001/diff/1/5
File src/MasterServer.cc (right):
http://rccodereview.appspot.com/35001/diff/1/5#newcode319
src/MasterServer.cc:319: *status = STATUS_TABLE_DOESNT_EXIST;
It doesn't appear that this path is exercised by the tests; can you add a test
for this condition to make sure that errors are propagated quickly?
http://rccodereview.appspot.com/35001/diff/1/5#newcode324
src/MasterServer.cc:324: *status = STATUS_OBJECT_DOESNT_EXIST;
Same comment here.
http://rccodereview.appspot.com/35001/diff/1/7
File src/MasterTest.cc (right):
http://rccodereview.appspot.com/35001/diff/1/7#newcode224
src/MasterTest.cc:224: void test_multiRead_oneT_oneO() {
These tests look good, but you could probably get by without all three. The idea
of unit tests is to exercise all of the major control paths and decisions in the
code. However, the case of objects in different tables isn't reflected in the
code: it's handled just the same as objects in the same table, right? Thus, you
probably don't need a special case for that condition.
http://rccodereview.appspot.com/35001/diff/1/12
File src/RamCloudTest.cc (right):
http://rccodereview.appspot.com/35001/diff/1/12#newcode27
src/RamCloudTest.cc:27: namespace RAMCloud {
I'm a little confused about this file: from the name, I would guess that it
provides tests for RamCloud.cc, but it appears to be testing mostly other files.
The code in RamCloud.cc looks pretty simple, so you could probably get by with a
single test for that.
It looks like some of what you're testing here may be code in ObjectFinder.cc?
However, tests for that code should go in ObjectFinderTest.cc; I don't see
ObjectFinderTest.cc in your list of modified files, but there should be new
tests in that file that verify your changes.
http://rccodereview.appspot.com/35001/diff/1/12#newcode177
src/RamCloudTest.cc:177: void test_multiRead_badTable() {
This test and the following one appear to be testing error conditions, which
only manifest themselves in the multiRead method of MasterServer.cc; thus I'd
move them to the tests for that file (MasterTest.cc?).
Issue 35001: Implementation of multiRead
Created 13 years, 6 months ago by Ankita
Modified 2 years, 7 months ago
Reviewers: Ankita
Base URL:
Comments: 28