stack created HBASE-22936:
-----------------------------
Summary: Close memStoreScanners in StoreScanner#updateReaders else
memory leak
Key: HBASE-22936
URL: https://issues.apache.org/jira/browse/HBASE-22936
Project: HBase
Issue Type: Bug
Reporter: stack
Fix For: 2.3.0, 2.1.7, 2.2.2
Via [~aoxiang] from over on HBASE-22723
{code}
+ if (!closeLock.tryLock()) {
+ // no lock acquired.
+ LOG.debug("StoreScanner already has the close lokc. There is no need
to updateReaders");
+ return;
+ }
+ // lock acquired
+ updateReaders = true;
+ if (this.closing) {
+ LOG.debug("StoreScanner already closing. There is no need to
updateReaders");
+ return;
+ }
{code}
We need to close memStoreScanners in StoreScanner#updateReaders before this two
return, someone else can take over the task.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)