[
https://issues.apache.org/jira/browse/HADOOP-17407?focusedWorklogId=523008&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-523008
]
ASF GitHub Bot logged work on HADOOP-17407:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 11/Dec/20 04:14
Start Date: 11/Dec/20 04:14
Worklog Time Spent: 10m
Work Description: bilaharith commented on a change in pull request #2525:
URL: https://github.com/apache/hadoop/pull/2525#discussion_r540677740
##########
File path:
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/TestMockHelpers.java
##########
@@ -0,0 +1,57 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs.azurebfs.utils;
+
+/**
+ * Test Mock Helpers.
+ */
+public final class TestMockHelpers {
+
+ /**
+ * Sets a class field by reflection.
+ * @param type
+ * @param obj
+ * @param fieldName
+ * @param fieldObject
+ * @param <T>
+ * @return
+ * @throws Exception
+ */
+ public static <T> T setClassField(
+ Class<T> type,
+ final T obj,
+ final String fieldName,
+ Object fieldObject) throws Exception {
+
+ java.lang.reflect.Field
Review comment:
can package prefix be avoided?
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 523008)
Time Spent: 1h (was: 50m)
> ABFS: Delete Idempotency handling can lead to NPE
> -------------------------------------------------
>
> Key: HADOOP-17407
> URL: https://issues.apache.org/jira/browse/HADOOP-17407
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/azure
> Affects Versions: 3.3.0
> Reporter: Sneha Vijayarajan
> Assignee: Sneha Vijayarajan
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.3.1
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Delete idempotency code returns success with a dummy success HttpOperation.
> the calling code that checks continuation token throws NPE as the dummy
> success instance does not have any response headers.
> In case of non-HNS account, server coulf return continuation token. Dummy
> success response code is modified to not fail while accessing response
> headers.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]