hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HADOOP-17152) Implement wrapper for guava newArrayList and newLinkedList
Date Wed, 02 Jun 2021 06:36:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-17152?focusedWorklogId=604972&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-604972

ASF GitHub Bot logged work on HADOOP-17152:

                Author: ASF GitHub Bot
            Created on: 02/Jun/21 06:35
            Start Date: 02/Jun/21 06:35
    Worklog Time Spent: 10m 
      Work Description: virajjasani commented on pull request #3061:
URL: https://github.com/apache/hadoop/pull/3061#issuecomment-852777497

   @jojochuang HADOOP-17098 provides best reasons for this.
   Shading Guava in HADOOP-17288 solves the conflicts of Guava library in Hadoop upstream,
downstreams, and the other projects (hbase,etc..).
   The Guava byte code will still be loaded and be part of the runtime.
   This Jira (when complete) gets rid of the Guava byte code which has the following benefits:
   - Reduce memory fooprint. (less classes to load)
   - Better code management: Guava will likely has security updates that forces Hadoop to
adopt new releases and dealing with compatibilities.
   - Avoid struggles analyzing guava performance

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 604972)
    Time Spent: 40m  (was: 0.5h)

> Implement wrapper for guava newArrayList and newLinkedList
> ----------------------------------------------------------
>                 Key: HADOOP-17152
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17152
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: common
>            Reporter: Ahmed Hussein
>            Assignee: Viraj Jasani
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
> guava Lists class provide some wrappers to java ArrayList and LinkedList.
> Replacing the method calls throughout the code can be invasive because guava offers some
APIs that do not exist in java util. This Jira is the task of implementing those missing APIs
in hadoop common in a step toward getting rid of guava.
>  * create a wrapper class org.apache.hadoop.util.unguava.ListsĀ 
>  * implement the following interfaces in Lists:
>  ** public static <E> ArrayList<E> newArrayList()
>  ** public static <E> ArrayList<E> newArrayList(E... elements)
>  ** public static <E> ArrayList<E> newArrayList(Iterable<? extends E>
>  ** public static <E> ArrayList<E> newArrayList(Iterator<? extends E>
>  ** public static <E> ArrayList<E> newArrayListWithCapacity(int initialArraySize)
>  ** public static <E> LinkedList<E> newLinkedList()
>  ** public static <E> LinkedList<E> newLinkedList(Iterable<? extends E>
>  ** public static <E> List<E> asList(@Nullable E first, E[] rest)

This message was sent by Atlassian Jira

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message