You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/10/05 15:00:00 UTC

[jira] [Work logged] (HADOOP-17930) implement non-guava Precondition checkState

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

ASF GitHub Bot logged work on HADOOP-17930:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Oct/21 14:59
            Start Date: 05/Oct/21 14:59
    Worklog Time Spent: 10m 
      Work Description: amahussein opened a new pull request #3522:
URL: https://github.com/apache/hadoop/pull/3522


   ### Description of PR
   
   As part In order to replace Guava Preconditions, we need to implement our own versions of the API.
   This Jira is to add the implementation `checkState `to the existing class `org.apache.hadoop.util.Preconditions`
   
   ### How was this patch tested?
   
   Extended the unit test org.apache.hadoop.util.TestPreconditions
   
   - Added `testCheckStateWithSuccess()`
   - Added `testCheckStateWithFailure()`
   
   ### For code changes:
   
   - [X] Does the title or this PR starts with the corresponding JIRA issue id: HADOOP-17929
   - [X] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
   
   


-- 
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.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 660375)
    Remaining Estimate: 0h
            Time Spent: 10m

> implement non-guava Precondition checkState
> -------------------------------------------
>
>                 Key: HADOOP-17930
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17930
>             Project: Hadoop Common
>          Issue Type: Sub-task
>    Affects Versions: 3.4.0, 3.2.3, 3.3.2
>            Reporter: Ahmed Hussein
>            Assignee: Ahmed Hussein
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As part In order to replace Guava Preconditions, we need to implement our own versions of the API.
>  This Jira is to add the implementation {{checkState}} to the existing class {{org.apache.hadoop.util.Preconditions}}
> +The plan is as follows+
>  * implement {{org.apache.hadoop.util.Preconditions.checkState}} with the minimum set of interface used in the current hadoop repo.
>  * we can replace {{guava.Preconditions}} by {{org.apache.hadoop.util.Preconditions}} once all the interfaces have been implemented (both this jira and HADOOP-17929 are complete).
>  * We need the change to be easily to be backported in 3.x.
> previous jiras:
>  * HADOOP-17126 was created to implement CheckNotNull.
>  * HADOOP-17929 implementing checkArgument.
> CC: [~stevel@apache.org], [~vjasani]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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