YARN-7320. Duplicate LiteralByteStrings in SystemCredentialsForAppsProto.credentialsForApp_ Addendum (misha@cloudera.com via rkanter)

This commit is contained in:
Robert Kanter 2017-10-26 15:50:14 -07:00
parent 25932da6d1
commit 088ffee716

View File

@ -156,7 +156,7 @@ private void addSystemCredentialsToProto() {
builder.addSystemCredentialsForApps(SystemCredentialsForAppsProto.newBuilder()
.setAppId(convertToProtoFormat(entry.getKey()))
.setCredentialsForApp(BYTE_STRING_INTERNER.intern(
ProtoUtils.convertToProtoFormat(entry.getValue()))));
ProtoUtils.convertToProtoFormat(entry.getValue().duplicate()))));
}
}