You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/04/21 17:29:59 UTC

[GitHub] [trafficserver] ywkaras commented on a diff in pull request #8802: Change remap loading to be fatal during startup.

ywkaras commented on code in PR #8802:
URL: https://github.com/apache/trafficserver/pull/8802#discussion_r855424590


##########
proxy/http/remap/RemapConfig.cc:
##########
@@ -944,6 +944,9 @@ remap_parse_config_bti(const char *path, BUILD_TABLE_INFO *bti)
 
   std::error_code ec;
   std::string content{ts::file::load(ts::file::path{path}, ec)};
+  if (ec.value() == ENOENT) { // a missing file is ok - treat as empty, no rules.

Review Comment:
   > We have a specific setting to not force having a remap.config -- proxy.config.url_remap.remap_required https://docs.trafficserver.apache.org/admin-guide/files/records.config.en.html#proxy-config-url-remap-remap-required, which has existed since the first commit. I'd expect a missing file to need that setting set to 0.
   
   This also seems correct to me.  Do we at least want a warning in diags.log if remap.config is empty?  Do we know of ATS users who don't do any remapping?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org