Skip to content

Conversation

@mehakmeet
Copy link
Contributor

  • Write_ops
  • Read_ops
  • Bytes_written (already updated)
  • Bytes_Read (already updated)

Change-Id: I77349fdd158babd66df665713201fa9c8606f191

NOTICE

Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute

@mehakmeet
Copy link
Contributor Author

mehakmeet commented Mar 6, 2020

test run : mvn -T 1C -Dparallel-tests=abfs clean verify
Region : East US, West US

Failed tests(Container configurations based) :

[ERROR] Failures: [ERROR] ITestGetNameSpaceEnabled.testNonXNSAccount:59->Assert.assertFalse:64->Assert.assertTrue:41->Assert.fail:88 Expecting getIsNamespaceEnabled() return false
[ERROR] Errors: [ERROR] ITestGetNameSpaceEnabled.testFailedRequestWhenCredentialsNotCorrect:91->AbstractAbfsIntegrationTest.getFileSystem:197 ? InvalidConfigurationValue

Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, some minor nits, but production code fine. Made some suggestions to the tests

Copy link
Contributor

@mukund-thakur mukund-thakur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes. Rest all looks good.

@mehakmeet mehakmeet requested a review from steveloughran March 11, 2020 12:16
Copy link
Contributor

@mukund-thakur mukund-thakur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sure why Yetus is not running. There might be some more checkstyle issues.

@mehakmeet mehakmeet closed this Mar 12, 2020
@mehakmeet mehakmeet reopened this Mar 12, 2020
Copy link
Contributor

@mukund-thakur mukund-thakur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please resolve the comments which you have fixed and keep others which you think still require some discussion.

Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good, apart from some minor style nits, the only thing needed is to skip the statistics updates if the class is null.
We should all be aware that stats are updated in the thread invoking the read/write call, and not the stats counter of the thread which opened it. This is not very important here...but be aware HBase does share the same stream instance across threads, as does impala. Stats updates will be spread across threads there -there is nothing we can do about it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ordering

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought ordering was right?
java
non org.apache
org.apache
static

Copy link
Contributor

@mukund-thakur mukund-thakur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New method is not generic enough. Introduce an "String Operation" parameter.

@mehakmeet mehakmeet requested a review from steveloughran March 18, 2020 07:41
@apache apache deleted a comment from hadoop-yetus Mar 18, 2020
Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all production code good, just final test tuning, all about making sure we close streams

Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all production code good, just final test tuning, all about making sure we close streams

@mehakmeet mehakmeet requested a review from steveloughran March 18, 2020 12:26
Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good -nearly there...just need to create and pass down a logger, so that things will get logged. I know, it doesn't seem important, but when you field support calls, you really appreciate the logging

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this logging required ? @steveloughran

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use IOUtils.cleanupWithLogger() here as well. Or you can just say this code is old.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.close() does this already.

@mehakmeet mehakmeet force-pushed the FileSystem-Counters branch from a607839 to afba6cc Compare March 23, 2020 06:58
Mehakmeet Singh added 8 commits March 23, 2020 13:45
- Write_ops
- Read_ops
- Bytes_written (already updated)
- Bytes_Read (already updated)

Change-Id: I77349fdd158babd66df665713201fa9c8606f191
@mehakmeet mehakmeet force-pushed the FileSystem-Counters branch from afba6cc to 6b28cf2 Compare March 23, 2020 08:16
@steveloughran steveloughran merged commit e2c7ac7 into apache:trunk Mar 23, 2020
@steveloughran
Copy link
Contributor

+1, merged to trunk. thanks!

@aajisaka
Copy link
Member

Hi @mehakmeet and @steveloughran
Failed to compile TestAbfsOutputStream.java after the merge. Would the fix it?

@mehakmeet
Copy link
Contributor Author

mehakmeet commented Mar 24, 2020

@aajisaka
Yes, I'll be fixing it.
https://issues.apache.org/jira/browse/HADOOP-16934

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants