You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by GitBox <gi...@apache.org> on 2022/01/25 06:03:44 UTC

[GitHub] [incubator-yunikorn-core] anuraagnalluri commented on a change in pull request #365: [YUNIKORN-949] Location of the state dump file should be configurable

anuraagnalluri commented on a change in pull request #365:
URL: https://github.com/apache/incubator-yunikorn-core/pull/365#discussion_r791380193



##########
File path: pkg/webservice/state_dump.go
##########
@@ -157,7 +160,20 @@ func doStateDump(w io.Writer) error {
 	if err != nil {
 		return err
 	}
-	if _, err = w.Write(prettyJSON); err != nil {
+
+	stateLog := log.New(w, "", 0)

Review comment:
       Good point -- this may be wasteful. However, the log object requires being constructed from the response writer which is why I had it in this method. I'll familiarize myself more with how the response writer gets passed from `routes.go` and see if I can change this.




-- 
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: reviews-unsubscribe@yunikorn.apache.org

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