hadoop-hdfs-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] (HDDS-1620) Implement Volume Write Requests to use Cache and DoubleBuffer
Date Tue, 11 Jun 2019 22:01:00 GMT

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

ASF GitHub Bot logged work on HDDS-1620:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Jun/19 22:00
            Start Date: 11/Jun/19 22:00
    Worklog Time Spent: 10m 
      Work Description: bharatviswa504 commented on pull request #884: HDDS-1620. Implement
Volume Write Requests to use Cache and DoubleBuffer.
URL: https://github.com/apache/hadoop/pull/884#discussion_r292677556
 
 

 ##########
 File path: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/utils/OzoneManagerRatisUtils.java
 ##########
 @@ -43,10 +48,24 @@ private OzoneManagerRatisUtils() {
    * @return OMClientRequest
    * @throws IOException
    */
-  public static OMClientRequest createClientRequest(OMRequest omRequest)
-      throws IOException {
+  public static OMClientRequest createClientRequest(OMRequest omRequest) {
     Type cmdType = omRequest.getCmdType();
     switch (cmdType) {
+    case CreateVolume:
+      return new OMVolumeCreateRequest(omRequest);
+    case SetVolumeProperty:
+      boolean hasQuota = omRequest.getSetVolumePropertyRequest()
+          .hasQuotaInBytes();
+      boolean hasOwner = omRequest.getSetVolumePropertyRequest().hasOwnerName();
+      Preconditions.checkState(hasOwner || hasQuota, "Either Quota or owner " +
+          "shuould be set in the SetVolumeProperty request");
+      if (omRequest.getSetVolumePropertyRequest().hasQuotaInBytes()) {
+        return new OMVolumeSetQuotaRequest(omRequest);
+      } else if(omRequest.getSetVolumePropertyRequest().hasOwnerName()) {
 
 Review comment:
   Done
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

    Worklog Id:     (was: 258157)
    Time Spent: 8h  (was: 7h 50m)

> Implement Volume Write Requests to use Cache and DoubleBuffer
> -------------------------------------------------------------
>
>                 Key: HDDS-1620
>                 URL: https://issues.apache.org/jira/browse/HDDS-1620
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>          Components: Ozone Manager
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 8h
>  Remaining Estimate: 0h
>
> Implement Volume write requests to use OM Cache, double buffer. 
> In this Jira will add the changes to implement volume operations, and HA/Non-HA will
have a different code path, but once all requests are implemented will have a single code
path.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message