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

Consider exposing ExportSnapshot#getSnapshotFiles through POJO class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • None
    • None

    Description

      In the thread, http://search-hadoop.com/m/HBase/YGbbUxY9FyU74X?subj=Re+Deleting+and+cleaning+old+snapshots+exported+to+S3 , Timothy mentioned that he used reflection to get to ExportSnapshot#getSnapshotFiles().

        private static List<Pair<SnapshotFileInfo, Long>> getSnapshotFiles(final Configuration conf,
            final FileSystem fs, final Path snapshotDir) throws IOException {
      

      SnapshotFileInfo is protobuf.

      We should consider exposing the API by replacing the protobuf class with POJO class.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: