sunchao commented on pull request #4007:
URL: https://github.com/apache/hadoop/pull/4007#issuecomment-1047439392
I see. Didn't know the context. It's a bit confusing to see the stack trace
like this though:
```
PrivilegedAction [as: <principal> (auth:KERBEROS)][action:
org.apache.hadoop.ipc.Client$Connection$2@65fa2f2d]
java.lang.Exception: null
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
~[hadoop-client-api-3.3.1.jar:?]
at
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:838)
~[hadoop-client-api-3.3.1.jar:?]
at org.apache.hadoop.ipc.Client$Connection.access$3800(Client.java:414)
~[hadoop-client-api-3.3.1.jar:?]
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1654)
~[hadoop-client-api-3.3.1.jar:?]
at org.apache.hadoop.ipc.Client.call(Client.java:1479)
~[hadoop-client-api-3.3.1.jar:?]
at org.apache.hadoop.ipc.Client.call(Client.java:1432)
~[hadoop-client-api-3.3.1.jar:?]
at
org.apache.hadoop.ipc.ProtobufRpcEngine2$Invoker.invoke(ProtobufRpcEngine2.java:242)
~[hadoop-client-api-3.3.1.jar:?]
at
org.apache.hadoop.ipc.ProtobufRpcEngine2$Invoker.invoke(ProtobufRpcEngine2.java:129)
~[hadoop-client-api-3.3.1.jar:?]
at com.sun.proxy.$Proxy14.delete(Unknown Source) ~[?:?]
```
and it could makes people think there's something wrong in the `doAs`
method. Maybe we can strip the first line of the stacktrace and replace with
something like:
```
PrivilegedAction [as: <principal> (auth:KERBEROS)][action:
org.apache.hadoop.ipc.Client$Connection$2@65fa2f2d]
Call stacktrace:
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
~[hadoop-client-api-3.3.1.jar:?]
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]