debug println information and fixes for hadoop-3733