HDFS-2856: refactor TestSaslDataTransfer and fix several bugs in write pipeline.