repair: Switch log level to warn instead of error

dtest takes error level log as serious error. It is not a serious error
for streaming to fail to send a verb and fail a streaming session which
triggers a repair failure, for example, the peer node is gone or
stopped. Switch to use log level warn instead of level error.

Fixes repair_additional_test.py:RepairAdditionalTest.repair_kill_3_test

Fixes: #1335
Message-Id: <406fb0c4a45b81bd9c0aea2a898d7ca0787b23e9.1465979288.git.asias@scylladb.com>
(cherry picked from commit de0fd98349)
This commit is contained in:
Asias He
2016-06-15 08:30:48 +00:00
committed by Pekka Enberg
parent 80e4e2da38
commit ad2b7d1e8c

View File

@@ -393,7 +393,7 @@ static future<> sync_range(seastar::sharded<database>& db,
return sp_in.execute().discard_result().then([&sp_out] {
return sp_out.execute().discard_result();
}).handle_exception([] (auto ep) {
logger.error("repair's stream failed: {}", ep);
logger.warn("repair's stream failed: {}", ep);
return make_exception_future(ep);
});
});