hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-1483) Use long primitives creating, renewing, and cancelling leases
Date Wed, 13 Jun 2007 00:27:26 GMT

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

stack updated HADOOP-1483:
--------------------------

    Attachment: leases-v2.patch

Version 2.  Can't be committed until after hadoop-1465 goes in.

Here's commit message:

src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestHStoreKey.java
    Added extractFamily tests.
* src/contrib/hbase/src/java/org/apache/hadoop/hbase/HLogKey.java
    Added comment.
* src/contrib/hbase/src/java/org/apache/hadoop/hbase/Leases.java
    Have leases created, renewed and cancelled using longs rather than
    Text. Makes for large savings in object creation.
    Javadoc edit. Changed leases Map from TreeMap to HashMap.
    (getLeaseId, createLeaseId): Renamed.
    (LeaseName, creatLeaseName, getLeaseName): Added.
* src/contrib/hbase/src/java/org/apache/hadoop/hbase/HStoreKey.java
    Added override so can extractFamily with colon appended.
    Redid extraction so we used Text#find rather than String.indexOf
    Makes for object creations savings.
* src/contrib/hbase/src/java/org/apache/hadoop/hbase/HRegionServer.java
    Pass scannerId long instead of ScannerName creating, cancelling, etc., 
    leases for scanners.
* src/contrib/hbase/src/java/org/apache/hadoop/hbase/HLog.java
    Comment.
* src/contrib/hbase/src/java/org/apache/hadoop/hbase/HMaster.java
    Use server name hashCode for lease naming.
* src/contrib/hbase/src/java/org/apache/hadoop/hbase/HRegion.java
    servers, rowsToLocks, locksToRows, stores do not need to be
    TreeMaps (They are more expensive than hashmaps).

> Use long primitives creating, renewing, and cancelling leases
> -------------------------------------------------------------
>
>                 Key: HADOOP-1483
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1483
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: contrib/hbase
>            Reporter: stack
>            Assignee: stack
>            Priority: Minor
>         Attachments: leases-v2.patch, leases.patch
>
>
> Profiling, we create a bunch of short-lived objects in hbase around lease creation, renewal
and release by doing 'new Text(Long.toString(someLong)))'.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message