Skip to content

Commit b0610ca

Browse files
committed
cannot access bytes written or read on a JBOD
1 parent edd1415 commit b0610ca

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/jbod_storage_test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ TEST_F(JBODStorageTest, SingleAsyncWrite) {
208208

209209
TEST_F(JBODStorageTest, SingleDetachedWrite) {
210210
DO_TEST_WITH_FORK([this]() {
211+
xbt_log_control_set("root.thresh:info");
211212
this->setup_platform();
212213
fs_client_->add_actor("TestActor", [this]() {
213214
std::shared_ptr<sgfs::File> file;
@@ -228,7 +229,8 @@ TEST_F(JBODStorageTest, SingleDetachedWrite) {
228229
ASSERT_NO_THROW(sg4::this_actor::sleep_for(0.12));
229230
XBT_INFO("Clock should be at 4.12s (.1s to transfer, 0.02 to compute parity, 4s to write), and write be complete");
230231
ASSERT_DOUBLE_EQ(sg4::Engine::get_clock(), 4.12);
231-
ASSERT_DOUBLE_EQ(file->get_num_bytes_written(my_write), 2000000);
232+
// FIXME: On a JBOD we can't retrieve the number of bytes written (or read)
233+
//ASSERT_DOUBLE_EQ(file->get_num_bytes_written(my_write), 2000000);
232234
XBT_INFO("Close the file");
233235
ASSERT_NO_THROW(file->close());
234236
});

test/python/jbod_storage_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_actor():
178178
this_actor.sleep_for(0.12)
179179
this_actor.info("Clock should be at 4.12s (.1s to transfer, 0.02 to compute parity, 4s to write), and write be complete")
180180
assert math.isclose(Engine.clock, 4.12)
181-
# FIXME this assert fails, to be investigated
181+
# FIXME On a JBOD we can't retrieve the number of bytes written (or read)
182182
# assert file.num_bytes_written(my_write) == 2000000
183183
this_actor.info("Close the file")
184184
file.close()

0 commit comments

Comments
 (0)