smarthanwang opened a new pull request #3909:
URL: https://github.com/apache/hadoop/pull/3909


   JIRA https://issues.apache.org/jira/browse/HDFS-16431
   
   ### Description of PR
   
   The context of CallerContext would be truncated  when  it exceeds the 
maximum allowed length in server side. I think it's better to do check and 
truncate in client side to reduce the unnecessary overhead of network and 
memory for NN.
   
   ### How was this patch tested?
   
   Add some UTs to test the context would be truncated correctly .
   
   ### For code changes:
   
   1. Refactor CallerContext.Builder constrctor to simplify usage
   2. Do context truncate before CallerContext.Builder.build()
   
   
   
   


-- 
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: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to