-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HADOOP-16138. hadoop fs mkdir / of nonexistent abfs container raises NPE #1302
HADOOP-16138. hadoop fs mkdir / of nonexistent abfs container raises NPE #1302
Conversation
I only see test changes. Is there another change to actually fix the error and fail with a more graceful error message? |
Yeah, I need to add a message which can be understood easily. The hard thing is that this message comes from @Override
protected void processPath(PathData item) throws IOException {
if (item.stat.isDirectory()) {
if (!createParents) {
throw new PathExistsException(item.toString());
}
} else {
throw new PathIsNotDirectoryException(item.toString());
}
} --- this throws PathExistsException. |
@mackrorysd I found out what's happening. We auto-create all containers during the test run, so I should turn that feature off for this test. I forgot to do that, and so I ended up a lot of random containers in the testing account. |
:) |
49a60aa
to
2cf8f4f
Compare
OK, so this is the test. What about the underlying NPE? |
I haven't figured out yet where to handle that. We can talk about that
offline - it will be just a few minutes.
…On Fri, 6 Sep 2019 at 22:34, Steve Loughran ***@***.***> wrote:
OK, so this is the test. What about the underlying NPE?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1302?email_source=notifications&email_token=ABHN7L2K2IXM3AGYEKZ5ZULQIK5D7A5CNFSM4IL6CAC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6D7PKA#issuecomment-529004456>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABHN7L6ML4GIZ5MLSGJ6363QIK5D7ANCNFSM4IL6CACQ>
.
|
Change-Id: I2f637865c871e400b95fe7ddaa24bf99fa192023
Change-Id: Ie6068f74862fdafc7ff5b2af939ae1096da5be7c
Change-Id: I8ae6e599ab3a2b3b279b53ec96f690f3033dbc0d
Change-Id: Icd30c23f5606431bbdbd690f52adec30453ee19d
2cf8f4f
to
17df4f0
Compare
LGTM, some minor typos and style +1 pending those changes looking at the mkdir() code, i can see that it raises a PathIOE on failure without any text. Do you think we should add a cause like "mkdir failed"? |
yeah, I can add since I'm already there. |
Change-Id: I6850cbec36ac93d118ee1333430f339016856a1a
🎊 +1 overall
This message was automatically generated. |
Change-Id: Ia4b1e9c75321a71e36144d20a5dcae013c46511e
💔 -1 overall
This message was automatically generated. |
…NPE (apache#1302). Contributed by Gabor Bota. Change-Id: I2f637865c871e400b95fe7ddaa24bf99fa192023 (cherry picked from commit aa664d7)
…NPE (apache#1302). Contributed by Gabor Bota. Change-Id: I2f637865c871e400b95fe7ddaa24bf99fa192023
…NPE (apache#1302). Contributed by Gabor Bota. Change-Id: I2f637865c871e400b95fe7ddaa24bf99fa192023
Change-Id: I2f637865c871e400b95fe7ddaa24bf99fa192023