David Ribeiro Alves has submitted this change and it was merged. Change subject: util: add fault injection of EIOs ......................................................................
util: add fault injection of EIOs This patch adds the functionality to inject EIOs in env_posix based on flag-specified glob patterns indicating which paths should fail and a flag-specified double indicating how often these failures should occur. A similar flag inject_io_error is replaced by the latter flag, and wrapper macros are updated to ensure the returned error expression is only executed when necessary. A test is added to env-test.cc to verify that EIOs are successfully triggered by specifying the patterns. Change-Id: I5190d5e7f296cf27b65f1ecd2c16f3315cc46a39 Reviewed-on: http://gerrit.cloudera.org:8080/6881 Reviewed-by: Adar Dembo <[email protected]> Tested-by: Kudu Jenkins Reviewed-by: David Ribeiro Alves <[email protected]> --- M src/kudu/fs/block_manager-test.cc M src/kudu/rpc/server_negotiation.cc M src/kudu/util/env-test.cc M src/kudu/util/env_posix.cc M src/kudu/util/fault_injection.cc M src/kudu/util/fault_injection.h 6 files changed, 186 insertions(+), 64 deletions(-) Approvals: David Ribeiro Alves: Looks good to me, approved Adar Dembo: Looks good to me, but someone else must approve Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/6881 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5190d5e7f296cf27b65f1ecd2c16f3315cc46a39 Gerrit-PatchSet: 19 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Andrew Wong <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: David Ribeiro Alves <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <[email protected]>
