Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12416

Trash messages should be handled by Logger instead of being delivered on System.out

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.8.0, 3.0.0-alpha1
    • trash
    • None
    • Incompatible change, Reviewed
    • Now trash message is not printed to System.out. It is handled by Logger instead.

    Description

      Specifically,

        if (success) {
            System.out.println("Moved: '" + p + "' to trash at: " +
                trash.getCurrentTrashDir() );
          }
      

      should be:

        if (success) {
            LOG.info("Moved: '" + p + "' to trash at: " + trash.getCurrentTrashDir());
          }
      

      Attachments

        1. HDFS-9037.000.patch
          0.8 kB
          Mingliang Liu

        Issue Links

          Activity

            People

              liuml07 Mingliang Liu
              ashutoshc Ashutosh Chauhan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: