Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11032

Replace deprecated methods in FileSystem with their replacements

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.99.0
    • None
    • None
    • Reviewed

    Description

      FileStatus#isDir() is deprecated.

      FileStatus#isDirectory() should be called instead.

      Here is the list of deprecated methods in FileSystem :

      public String getName()
      public static FileSystem getNamed(String name, Configuration conf)
        public FSDataOutputStream createNonRecursive(Path f,
            boolean overwrite,
            int bufferSize, short replication, long blockSize,
            Progressable progress) throws IOException {
         public FSDataOutputStream createNonRecursive(Path f, FsPermission permission,
             boolean overwrite, int bufferSize, short replication, long blockSize,
             Progressable progress) throws IOException {
        public short getReplication(Path src) throws IOException {
        public boolean delete(Path f) throws IOException {
        public long getLength(Path f) throws IOException {
        public long getBlockSize(Path f) throws IOException {
        public long getDefaultBlockSize() {
      public short getDefaultReplication()
      

      Except for createNonRecursive() which doesn't have non-deprecated equivalent in DistributedFileSystem, deprecated methods are replaced with their non-deprecated counterparts.

      Attachments

        1. HBASE-11032.patch
          33 kB
          Gustavo Anatoly
        2. HBASE-11032-v1.patch
          31 kB
          Gustavo Anatoly

        Issue Links

          Activity

            People

              gustavoanatoly Gustavo Anatoly
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: