[jira] [Updated] (HBASE-18554) Append#add doesn't check the row of passed cell
[ https://issues.apache.org/jira/browse/HBASE-18554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chia-Ping Tsai updated HBASE-18554: --- Fix Version/s: (was: 1.2.7) (was: 1.5.0) (was: 1.3.2) (was: 1.4.0) (was: 2.0.0) 3.0.0 > Append#add doesn't check the row of passed cell > --- > > Key: HBASE-18554 > URL: https://issues.apache.org/jira/browse/HBASE-18554 > Project: HBase > Issue Type: Bug >Reporter: Chia-Ping Tsai >Assignee: Reid Chan > Labels: beginner > Fix For: 3.0.0 > > Attachments: HBASE-18554.master.001.patch, > HBASE-18554.master.002.patch > > > {code} > @SuppressWarnings("unchecked") > public Append add(final Cell cell) { > // Presume it is KeyValue for now. > byte [] family = CellUtil.cloneFamily(cell); > List list = this.familyMap.get(family); > if (list == null) { > list = new ArrayList<>(1); > } > // find where the new entry should be placed in the List > list.add(cell); > this.familyMap.put(family, list); > return this; > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (HBASE-18554) Append#add doesn't check the row of passed cell
[ https://issues.apache.org/jira/browse/HBASE-18554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chia-Ping Tsai updated HBASE-18554: --- Fix Version/s: 1.2.7 1.5.0 1.3.2 1.4.0 2.0.0 > Append#add doesn't check the row of passed cell > --- > > Key: HBASE-18554 > URL: https://issues.apache.org/jira/browse/HBASE-18554 > Project: HBase > Issue Type: Bug >Reporter: Chia-Ping Tsai >Assignee: Reid Chan > Labels: beginner > Fix For: 2.0.0, 1.4.0, 1.3.2, 1.5.0, 1.2.7 > > Attachments: HBASE-18554.master.001.patch, > HBASE-18554.master.002.patch > > > {code} > @SuppressWarnings("unchecked") > public Append add(final Cell cell) { > // Presume it is KeyValue for now. > byte [] family = CellUtil.cloneFamily(cell); > List list = this.familyMap.get(family); > if (list == null) { > list = new ArrayList<>(1); > } > // find where the new entry should be placed in the List > list.add(cell); > this.familyMap.put(family, list); > return this; > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (HBASE-18554) Append#add doesn't check the row of passed cell
[ https://issues.apache.org/jira/browse/HBASE-18554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Reid Chan updated HBASE-18554: -- Attachment: HBASE-18554.master.002.patch When row doesn't match, throw IllegalArgumentException(). > Append#add doesn't check the row of passed cell > --- > > Key: HBASE-18554 > URL: https://issues.apache.org/jira/browse/HBASE-18554 > Project: HBase > Issue Type: Bug >Reporter: Chia-Ping Tsai >Assignee: Reid Chan > Labels: beginner > Attachments: HBASE-18554.master.001.patch, > HBASE-18554.master.002.patch > > > {code} > @SuppressWarnings("unchecked") > public Append add(final Cell cell) { > // Presume it is KeyValue for now. > byte [] family = CellUtil.cloneFamily(cell); > List list = this.familyMap.get(family); > if (list == null) { > list = new ArrayList<>(1); > } > // find where the new entry should be placed in the List > list.add(cell); > this.familyMap.put(family, list); > return this; > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (HBASE-18554) Append#add doesn't check the row of passed cell
[ https://issues.apache.org/jira/browse/HBASE-18554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Reid Chan updated HBASE-18554: -- Status: Open (was: Patch Available) > Append#add doesn't check the row of passed cell > --- > > Key: HBASE-18554 > URL: https://issues.apache.org/jira/browse/HBASE-18554 > Project: HBase > Issue Type: Bug >Reporter: Chia-Ping Tsai >Assignee: Reid Chan > Labels: beginner > Attachments: HBASE-18554.master.001.patch > > > {code} > @SuppressWarnings("unchecked") > public Append add(final Cell cell) { > // Presume it is KeyValue for now. > byte [] family = CellUtil.cloneFamily(cell); > List list = this.familyMap.get(family); > if (list == null) { > list = new ArrayList<>(1); > } > // find where the new entry should be placed in the List > list.add(cell); > this.familyMap.put(family, list); > return this; > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (HBASE-18554) Append#add doesn't check the row of passed cell
[ https://issues.apache.org/jira/browse/HBASE-18554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Reid Chan updated HBASE-18554: -- Assignee: Reid Chan Status: Patch Available (was: Open) > Append#add doesn't check the row of passed cell > --- > > Key: HBASE-18554 > URL: https://issues.apache.org/jira/browse/HBASE-18554 > Project: HBase > Issue Type: Bug >Reporter: Chia-Ping Tsai >Assignee: Reid Chan > Labels: beginner > Attachments: HBASE-18554.master.001.patch > > > {code} > @SuppressWarnings("unchecked") > public Append add(final Cell cell) { > // Presume it is KeyValue for now. > byte [] family = CellUtil.cloneFamily(cell); > List list = this.familyMap.get(family); > if (list == null) { > list = new ArrayList<>(1); > } > // find where the new entry should be placed in the List > list.add(cell); > this.familyMap.put(family, list); > return this; > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (HBASE-18554) Append#add doesn't check the row of passed cell
[ https://issues.apache.org/jira/browse/HBASE-18554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Reid Chan updated HBASE-18554: -- Attachment: HBASE-18554.master.001.patch Remove {code:@SuppressWarnings("unchecked")} for it's no longer unchecked; add a row check for a passed cell and ignore it if fails the check; no unit test provided. > Append#add doesn't check the row of passed cell > --- > > Key: HBASE-18554 > URL: https://issues.apache.org/jira/browse/HBASE-18554 > Project: HBase > Issue Type: Bug >Reporter: Chia-Ping Tsai > Labels: beginner > Attachments: HBASE-18554.master.001.patch > > > {code} > @SuppressWarnings("unchecked") > public Append add(final Cell cell) { > // Presume it is KeyValue for now. > byte [] family = CellUtil.cloneFamily(cell); > List list = this.familyMap.get(family); > if (list == null) { > list = new ArrayList<>(1); > } > // find where the new entry should be placed in the List > list.add(cell); > this.familyMap.put(family, list); > return this; > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)