[jira] [Updated] (HBASE-13270) Setter for Result#getStats is #addResults; confusing!

2015-12-21 Thread Appy (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-13270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Appy updated HBASE-13270:
-
Component/s: Client

> Setter for Result#getStats is #addResults; confusing!
> -
>
> Key: HBASE-13270
> URL: https://issues.apache.org/jira/browse/HBASE-13270
> Project: HBase
>  Issue Type: Improvement
>  Components: Client
>Reporter: stack
>Assignee: Mikhail Antonov
>  Labels: beginner
> Fix For: 2.0.0, 1.1.0
>
> Attachments: HBASE-13270-v2.patch, HBASE-13270.patch
>
>
> Below is our [~larsgeorge] on a finding he made reviewing our API:
> "Result class having getStats() and addResults(Stats) makes little sense..."
> "...the naming is just weird. You have a getStats() getter and an 
> addResults(Stats) setter???"
> "...Especially in the Result class and addResult() is plain misleading..."
> This issue is about deprecating addResults and replacing it with addStats in 
> its place.
> The getStats/addResult is recent. It came in with:
> {code}
> commit a411227b0ebf78b4ee8ae7179e162b54734e77de
> Author: Jesse Yates 
> Date:   Tue Oct 28 16:14:16 2014 -0700
> HBASE-5162 Basic client pushback mechanism
> ...
> {code}
> RegionLoadStats don't belong in Result if you ask me but better in the 
> enveloping on invocations... but that is another issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-13270) Setter for Result#getStats is #addResults; confusing!

2015-04-09 Thread Mikhail Antonov (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-13270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Antonov updated HBASE-13270:

Attachment: HBASE-13270-v2.patch

it escaped my attention..here's updated to setStatistics patch.

 Setter for Result#getStats is #addResults; confusing!
 -

 Key: HBASE-13270
 URL: https://issues.apache.org/jira/browse/HBASE-13270
 Project: HBase
  Issue Type: Improvement
Reporter: stack
Assignee: Mikhail Antonov
  Labels: beginner
 Attachments: HBASE-13270-v2.patch, HBASE-13270.patch


 Below is our [~larsgeorge] on a finding he made reviewing our API:
 Result class having getStats() and addResults(Stats) makes little sense...
 ...the naming is just weird. You have a getStats() getter and an 
 addResults(Stats) setter???
 ...Especially in the Result class and addResult() is plain misleading...
 This issue is about deprecating addResults and replacing it with addStats in 
 its place.
 The getStats/addResult is recent. It came in with:
 {code}
 commit a411227b0ebf78b4ee8ae7179e162b54734e77de
 Author: Jesse Yates jesse.k.ya...@gmail.com
 Date:   Tue Oct 28 16:14:16 2014 -0700
 HBASE-5162 Basic client pushback mechanism
 ...
 {code}
 RegionLoadStats don't belong in Result if you ask me but better in the 
 enveloping on invocations... but that is another issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-13270) Setter for Result#getStats is #addResults; confusing!

2015-04-09 Thread Mikhail Antonov (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-13270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Antonov updated HBASE-13270:

Status: Patch Available  (was: Open)

 Setter for Result#getStats is #addResults; confusing!
 -

 Key: HBASE-13270
 URL: https://issues.apache.org/jira/browse/HBASE-13270
 Project: HBase
  Issue Type: Improvement
Reporter: stack
Assignee: Mikhail Antonov
  Labels: beginner
 Attachments: HBASE-13270-v2.patch, HBASE-13270.patch


 Below is our [~larsgeorge] on a finding he made reviewing our API:
 Result class having getStats() and addResults(Stats) makes little sense...
 ...the naming is just weird. You have a getStats() getter and an 
 addResults(Stats) setter???
 ...Especially in the Result class and addResult() is plain misleading...
 This issue is about deprecating addResults and replacing it with addStats in 
 its place.
 The getStats/addResult is recent. It came in with:
 {code}
 commit a411227b0ebf78b4ee8ae7179e162b54734e77de
 Author: Jesse Yates jesse.k.ya...@gmail.com
 Date:   Tue Oct 28 16:14:16 2014 -0700
 HBASE-5162 Basic client pushback mechanism
 ...
 {code}
 RegionLoadStats don't belong in Result if you ask me but better in the 
 enveloping on invocations... but that is another issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-13270) Setter for Result#getStats is #addResults; confusing!

2015-04-09 Thread stack (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-13270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack updated HBASE-13270:
--
   Resolution: Fixed
Fix Version/s: 1.1.0
   2.0.0
 Release Note: Deprecates Result#addResults in favor of Result#setStatistics
 Hadoop Flags: Reviewed
   Status: Resolved  (was: Patch Available)

Pushed to branch-1+. Thanks [~mantonov]

 Setter for Result#getStats is #addResults; confusing!
 -

 Key: HBASE-13270
 URL: https://issues.apache.org/jira/browse/HBASE-13270
 Project: HBase
  Issue Type: Improvement
Reporter: stack
Assignee: Mikhail Antonov
  Labels: beginner
 Fix For: 2.0.0, 1.1.0

 Attachments: HBASE-13270-v2.patch, HBASE-13270.patch


 Below is our [~larsgeorge] on a finding he made reviewing our API:
 Result class having getStats() and addResults(Stats) makes little sense...
 ...the naming is just weird. You have a getStats() getter and an 
 addResults(Stats) setter???
 ...Especially in the Result class and addResult() is plain misleading...
 This issue is about deprecating addResults and replacing it with addStats in 
 its place.
 The getStats/addResult is recent. It came in with:
 {code}
 commit a411227b0ebf78b4ee8ae7179e162b54734e77de
 Author: Jesse Yates jesse.k.ya...@gmail.com
 Date:   Tue Oct 28 16:14:16 2014 -0700
 HBASE-5162 Basic client pushback mechanism
 ...
 {code}
 RegionLoadStats don't belong in Result if you ask me but better in the 
 enveloping on invocations... but that is another issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-13270) Setter for Result#getStats is #addResults; confusing!

2015-03-18 Thread Mikhail Antonov (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-13270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Antonov updated HBASE-13270:

Attachment: HBASE-13270.patch

trivial patch

 Setter for Result#getStats is #addResults; confusing!
 -

 Key: HBASE-13270
 URL: https://issues.apache.org/jira/browse/HBASE-13270
 Project: HBase
  Issue Type: Improvement
Reporter: stack
  Labels: beginner
 Attachments: HBASE-13270.patch


 Below is our [~larsgeorge] on a finding he made reviewing our API:
 Result class having getStats() and addResults(Stats) makes little sense...
 ...the naming is just weird. You have a getStats() getter and an 
 addResults(Stats) setter???
 ...Especially in the Result class and addResult() is plain misleading...
 This issue is about deprecating addResults and replacing it with addStats in 
 its place.
 The getStats/addResult is recent. It came in with:
 {code}
 commit a411227b0ebf78b4ee8ae7179e162b54734e77de
 Author: Jesse Yates jesse.k.ya...@gmail.com
 Date:   Tue Oct 28 16:14:16 2014 -0700
 HBASE-5162 Basic client pushback mechanism
 ...
 {code}
 RegionLoadStats don't belong in Result if you ask me but better in the 
 enveloping on invocations... but that is another issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)