Skip to content

Commit

Permalink
[#2952] Add the missing close client call in SetUniverseKey
Browse files Browse the repository at this point in the history
Summary:
Add a missing closeClient call inside of SetUniverseKey , this would keep the client
connection around and eventually causing OOM.

Test Plan: TBD

Reviewers: bogdan, rao, daniel

Reviewed By: rao, daniel

Subscribers: jenkins-bot, yugaware, rao

Differential Revision: https://phabricator.dev.yugabyte.com/D7583
  • Loading branch information
Ram Sri committed Nov 16, 2019
1 parent 5d63660 commit 67110c8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ private void setKeyInMaster(Universe u, HostAndPort masterAddr, byte[] keyRef, b
masterAddr.toString()
);
LOG.error(errMsg, e);
} finally {
ybService.closeClient(client, hostPorts);
}
}

Expand Down

0 comments on commit 67110c8

Please sign in to comment.