https://github.com/projectkudu/kudu/pull/669/files#L0R37