hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Hofhansl (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11010) TestChangingEncoding is unnecessarily slow
Date Thu, 17 Apr 2014 00:55:15 GMT

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

Lars Hofhansl updated HBASE-11010:
----------------------------------

    Attachment: 11010-0.94.txt

0.94 patch (runtime goes from 247s to 169s).

> TestChangingEncoding is unnecessarily slow
> ------------------------------------------
>
>                 Key: HBASE-11010
>                 URL: https://issues.apache.org/jira/browse/HBASE-11010
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>            Reporter: Lars Hofhansl
>            Assignee: Lars Hofhansl
>            Priority: Minor
>             Fix For: 0.94.19
>
>         Attachments: 11010-0.94.txt
>
>
> The test runs for over 10m on the Jenkins boxes.
> Writing the test data is done like this:
> {code}
>     for (int i = 0; i < NUM_ROWS_PER_BATCH; ++i) {
>       Put put = new Put(getRowKey(batchId, i));
>       for (int j = 0; j < NUM_COLS_PER_ROW; ++j) {
>         put.add(CF_BYTES, getQualifier(j),
>             getValue(batchId, i, j));
>         table.put(put);
>       }
>     }
> {code}
> There are two problems:
> # the same Put is "putted" multiple times (once for each column added)
> # each Put issued this way causes its one RPC
> On my machine changing this bring the runtime from 247s to 169s.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message