HDDS-2078. Get/Renew DelegationToken NPE after HDDS-1909

Closes #1444
This commit is contained in:
Xiaoyu Yao 2019-09-16 16:58:10 +02:00 committed by Márton Elek
parent 363373e0ef
commit 56f042c48f
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28
2 changed files with 4 additions and 4 deletions

View File

@ -147,8 +147,8 @@ public class OMGetDelegationTokenRequest extends OMClientRequest {
OMMetadataManager omMetadataManager = ozoneManager.getMetadataManager(); OMMetadataManager omMetadataManager = ozoneManager.getMetadataManager();
try { try {
OzoneTokenIdentifier ozoneTokenIdentifier = OzoneTokenIdentifier ozoneTokenIdentifier = OzoneTokenIdentifier.
ozoneTokenIdentifierToken.decodeIdentifier(); readProtoBuf(ozoneTokenIdentifierToken.getIdentifier());
// Update in memory map of token. // Update in memory map of token.
long renewTime = ozoneManager.getDelegationTokenMgr() long renewTime = ozoneManager.getDelegationTokenMgr()

View File

@ -123,8 +123,8 @@ public class OMRenewDelegationTokenRequest extends OMClientRequest {
.setSuccess(true); .setSuccess(true);
try { try {
OzoneTokenIdentifier ozoneTokenIdentifier = OzoneTokenIdentifier ozoneTokenIdentifier = OzoneTokenIdentifier.
ozoneTokenIdentifierToken.decodeIdentifier(); readProtoBuf(ozoneTokenIdentifierToken.getIdentifier());
// Update in memory map of token. // Update in memory map of token.
ozoneManager.getDelegationTokenMgr() ozoneManager.getDelegationTokenMgr()