David Ribeiro Alves has uploaded a new change for review. http://gerrit.cloudera.org:8080/3027
Change subject: Make the meta cache return Status::NetworkError if no addresses were found ...................................................................... Make the meta cache return Status::NetworkError if no addresses were found This adds a new flag 'fail_dns_resolution' to net-util.cc so that we can fail dns resolution on purpose and makes it so that the meta cache returns Status:NetworkError in this case, instead of NotFound as before. This also adds a test that makes sure that we get Status::NetworkError() back if we set the flag and that normal resolution resumes once it's set to the default value. Changing this error type allows to have a clearer error handling path as there is one less status type to handle. Change-Id: I95b553f1db1b76f9e8117b6628c7bf64013d1ad9 --- M src/kudu/client/client-test.cc M src/kudu/client/meta_cache.cc M src/kudu/util/net/net_util.cc 3 files changed, 38 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/27/3027/1 -- To view, visit http://gerrit.cloudera.org:8080/3027 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I95b553f1db1b76f9e8117b6628c7bf64013d1ad9 Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro Alves <[email protected]>
