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

(cherry picked from commit 088ffee716)
This commit is contained in:
Robert Kanter 2017-10-26 15:50:14 -07:00
parent 9665971a65
commit cd9078df68
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ public class NodeHeartbeatResponsePBImpl extends NodeHeartbeatResponse {
builder.addSystemCredentialsForApps(SystemCredentialsForAppsProto.newBuilder() builder.addSystemCredentialsForApps(SystemCredentialsForAppsProto.newBuilder()
.setAppId(convertToProtoFormat(entry.getKey())) .setAppId(convertToProtoFormat(entry.getKey()))
.setCredentialsForApp(BYTE_STRING_INTERNER.intern( .setCredentialsForApp(BYTE_STRING_INTERNER.intern(
ProtoUtils.convertToProtoFormat(entry.getValue())))); ProtoUtils.convertToProtoFormat(entry.getValue().duplicate()))));
} }
} }