-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17156. Purging the buffers associated with input streams during close() #3285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...ols/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/ReadBufferManager.java
Outdated
Show resolved
Hide resolved
steveloughran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some clarification over concurrent access for tests, some minor nits (import etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afraid if we need concurrency we should use Collections.synchronizedList()
...ols/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/ReadBufferManager.java
Outdated
Show resolved
Hide resolved
...ols/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/ReadBufferManager.java
Outdated
Show resolved
Hide resolved
...adoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/ITestReadBufferManager.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you can parallelize this you can get a faster test setup, I think ITestS3AAssumedRole does that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertThat(list).hasSize(), as you do below.
could consider an AsserListEmpty(text, list) with that operation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you close these always in a try/finally, just so if an assert fails things still get cleaned up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, just make simple list. Now, small risk of that copy happening while something else changes. Now it is only test code, but could lead to intermittent test fails.
so: make these all synchronized; return List() and use ArrayList inside
|
Re-ran all tests including scale one using us-east-1 bucket. Don't see any failures. |
|
parallel test runs execute in different processes; that is not the direct cause of test failure Possible
|
94ae9dc to
84179a3
Compare
|
Forced push since I had to do rebase. |
|
🎊 +1 overall
This message was automatically generated. |
steveloughran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good; just add that little import nit and I'm happy,
+1 pending.
...adoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/ITestReadBufferManager.java
Outdated
Show resolved
Hide resolved
steveloughran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from me
7c5b65e to
5066471
Compare
|
🎊 +1 overall
This message was automatically generated. |
… close() (#3285) Contributed By: Mukund Thakur
… close() (apache#3285) Contributed By: Mukund Thakur
…t streams in close() (apache#3285) Contributed By: Mukund Thakur Change-Id: Id50f1aac113f89c3957301266f3ef7ce3f09b698
Ran all abfs tests. Don't see any failures.
Please treat this as initial patch to get a basic understanding for the thought process.