HDDS-107. TestOzoneConfigurationFields is failing.

Contributed by LiXin Ge & Mukul Kumar Singh.
This commit is contained in:
Anu Engineer 2018-06-06 08:39:18 -07:00
parent d1992ab9b0
commit 30f0582f2b
3 changed files with 7 additions and 1 deletions

View File

@ -39,6 +39,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.apache.hadoop.ozone.OzoneConfigKeys.OZONE_TAGS_SYSTEM_KEY;
/**
* A servlet to print out the running configuration data.
*/
@ -154,7 +156,8 @@ private void processConfigTagRequest(HttpServletRequest request,
switch (cmd) {
case "getOzoneTags":
out.write(gson.toJson(config.get("ozone.tags.system").split(",")));
out.write(gson.toJson(config.get(OZONE_TAGS_SYSTEM_KEY)
.split(",")));
break;
case "getPropertyByTag":
String tags = request.getParameter("tags");

View File

@ -31,6 +31,8 @@
@InterfaceAudience.Public
@InterfaceStability.Unstable
public final class OzoneConfigKeys {
public static final String OZONE_TAGS_SYSTEM_KEY =
"ozone.tags.system";
public static final String DFS_CONTAINER_IPC_PORT =
"dfs.container.ipc";
public static final int DFS_CONTAINER_IPC_PORT_DEFAULT = 9859;

View File

@ -34,5 +34,6 @@ public void initializeMemberVariables() {
KSMConfigKeys.class};
errorIfMissingConfigProps = true;
errorIfMissingXmlProps = true;
xmlPropsToSkipCompare.add("hadoop.tags.custom");
}
}