YARN-7320. Duplicate LiteralByteStrings in SystemCredentialsForAppsProto.credentialsForApp_ Addendum (misha@cloudera.com via rkanter)
(cherry picked from commit 088ffee716
)
This commit is contained in:
parent
9665971a65
commit
cd9078df68
|
@ -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()))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue