[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16578662#comment-16578662 ] Hudson commented on HBASE-21029: Results for branch branch-2.1 [build #183 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/183/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/183//General_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/183//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/183//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. (/) {color:green}+1 client integration test{color} > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Fix For: 2.0.2, 2.1.1 > > Attachments: HBASE-21029.branch-2.0.001.patch, > HBASE-21029.branch-2.0.002.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16578635#comment-16578635 ] Hudson commented on HBASE-21029: Results for branch branch-2.0 [build #671 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/671/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/671//General_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/671//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/671//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Fix For: 2.0.2, 2.1.1 > > Attachments: HBASE-21029.branch-2.0.001.patch, > HBASE-21029.branch-2.0.002.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16578221#comment-16578221 ] Allan Yang commented on HBASE-21029: Pushed to branch-2.0 and branch-2.1, thanks all for reviewing! > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Fix For: 2.0.2, 2.1.1 > > Attachments: HBASE-21029.branch-2.0.001.patch, > HBASE-21029.branch-2.0.002.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16577483#comment-16577483 ] Allan Yang commented on HBASE-21029: [~yuzhih...@gmail.com], just checked, master branch and branch-2 has HBASE-20542, so the problem has fixed. I think we can check in this one only to branch-2.0 and branch-2.1? > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Attachments: HBASE-21029.branch-2.0.001.patch, > HBASE-21029.branch-2.0.002.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16576479#comment-16576479 ] Ted Yu commented on HBASE-21029: I applied the test change only and ran: -Dtest=TestDefaultMemStore#testPutSameCell The test passed. Can you come up with test which fails without change to Segment.java ? Thanks > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Attachments: HBASE-21029.branch-2.0.001.patch, > HBASE-21029.branch-2.0.002.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16576153#comment-16576153 ] Hadoop QA commented on HBASE-21029: --- | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 19s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} hbaseanti {color} | {color:green} 0m 0s{color} | {color:green} Patch does not have any anti-patterns. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} branch-2.0 Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 3m 45s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 41s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 1m 3s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} shadedjars {color} | {color:green} 3m 56s{color} | {color:green} branch has no errors when building our shaded downstream artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 59s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 30s{color} | {color:green} branch-2.0 passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 3m 28s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 39s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 39s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 1m 3s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} shadedjars {color} | {color:green} 3m 43s{color} | {color:green} patch has no errors when building our shaded downstream artifacts. {color} | | {color:green}+1{color} | {color:green} hadoopcheck {color} | {color:green} 10m 31s{color} | {color:green} Patch does not cause any errors with Hadoop 2.6.5 2.7.4 or 3.0.0. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 2m 5s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 28s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green}188m 33s{color} | {color:green} hbase-server in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 17s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black}225m 29s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:6f01af0 | | JIRA Issue | HBASE-21029 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12935095/HBASE-21029.branch-2.0.002.patch | | Optional Tests | asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile | | uname | Linux ecdce4734d16 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 GNU/Linux | | Build tool | maven | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh | | git revision | branch-2.0 / 7ee4aa459c | | maven | version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z) | | Default Java | 1.8.0_171 | | findbugs | v3.1.0-RC3 | | Test Results | https://builds.apache.org/job/PreCommit-HBASE-Build/13999/testReport/ | | Max. process+thread count | 4451 (vs. ulimit of 1) | | modules | C: hbase-server U: hbase-server | | Console output | https://builds.apache.org/job/PreCommit-HBASE-Build/13999/console | | Powered by | Apache Yetus 0.7.0 http://yetus.apache.org | This message was automatically
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16576024#comment-16576024 ] Yu Li commented on HBASE-21029: --- Patch v2 LGTM, +1 > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Attachments: HBASE-21029.branch-2.0.001.patch, > HBASE-21029.branch-2.0.002.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16575902#comment-16575902 ] Allan Yang commented on HBASE-21029: [~carp84], thanks for reviewing, modified as suggested. The failed UT should not be related, re-trigger a run. > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Attachments: HBASE-21029.branch-2.0.001.patch, > HBASE-21029.branch-2.0.002.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16574421#comment-16574421 ] Hadoop QA commented on HBASE-21029: --- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 41s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} hbaseanti {color} | {color:green} 0m 0s{color} | {color:green} Patch does not have any anti-patterns. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} branch-2.0 Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 5m 24s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 46s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 1m 7s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} shadedjars {color} | {color:green} 4m 14s{color} | {color:green} branch has no errors when building our shaded downstream artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 2m 16s{color} | {color:green} branch-2.0 passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 29s{color} | {color:green} branch-2.0 passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 3m 38s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 48s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 48s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 1m 3s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} shadedjars {color} | {color:green} 4m 3s{color} | {color:green} patch has no errors when building our shaded downstream artifacts. {color} | | {color:green}+1{color} | {color:green} hadoopcheck {color} | {color:green} 11m 47s{color} | {color:green} Patch does not cause any errors with Hadoop 2.6.5 2.7.4 or 3.0.0. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 2m 18s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 26s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:red}-1{color} | {color:red} unit {color} | {color:red}183m 59s{color} | {color:red} hbase-server in the patch failed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 19s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black}225m 51s{color} | {color:black} {color} | \\ \\ || Reason || Tests || | Failed junit tests | hadoop.hbase.client.TestAsyncTableGetMultiThreaded | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:6f01af0 | | JIRA Issue | HBASE-21029 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12934910/HBASE-21029.branch-2.0.001.patch | | Optional Tests | asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile | | uname | Linux 378e6b9663f5 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 GNU/Linux | | Build tool | maven | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh | | git revision | branch-2.0 / 7ee4aa459c | | maven | version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z) | | Default Java | 1.8.0_171 | | findbugs | v3.1.0-RC3 | | unit | https://builds.apache.org/job/PreCommit-HBASE-Build/13989/artifact/patchprocess/patch-unit-hbase-server.txt | | Test Results | https://builds.apache.org/job/PreCommit-HBASE-Build/13989/testReport/ | | Max. process+thread count | 4766 (vs. ulimit of 1) | | modules | C:
[jira] [Commented] (HBASE-21029) Miscount of memstore's heap/offheap size if same cell was put
[ https://issues.apache.org/jira/browse/HBASE-21029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16574347#comment-16574347 ] Yu Li commented on HBASE-21029: --- +1, we should always increase heap size when data size increases. Minor: store the {{succ || mslabUsed}} result to avoid multiple check? > Miscount of memstore's heap/offheap size if same cell was put > - > > Key: HBASE-21029 > URL: https://issues.apache.org/jira/browse/HBASE-21029 > Project: HBase > Issue Type: Bug >Affects Versions: 2.1.0, 2.0.1 >Reporter: Allan Yang >Assignee: Allan Yang >Priority: Major > Attachments: HBASE-21029.branch-2.0.001.patch > > > We are now using memstore.heapSize() + memstore.offheapSize() to decide > whether a flush is needed. But, if a same cell was put again in memstore, > only the memstore's dataSize will be increased, the heap/offheap size won't. > We encountered the problem that a user was putting the same kv again and > again, but the memstore won't flush since the heap size was not counted > properly. The RS was killed by system since not enough memory in the end. > Actually, if MSLAB is used, the heap/offheap will increase no matter the cell > is added or not. IIRC, memstore's heap/offheap size should always bigger than > data size. We introduced heap/offheap size besides data size in order to > reflect memory footprint more precisely. > {code} > // If there's already a same cell in the CellSet and we are using MSLAB, > we must count in the > // MSLAB allocation size as well, or else there will be memory leak > (occupied heap size larger > // than the counted number) > if (succ || mslabUsed) { > cellSize = getCellLength(cellToAdd); > } > // heap/offheap size is changed only if the cell is truly added in the > cellSet > long heapSize = heapSizeChange(cellToAdd, succ); > long offHeapSize = offHeapSizeChange(cellToAdd, succ); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)