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

Some improvement in snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.8, 0.95.0
    • 0.98.0, 0.95.2
    • snapshots
    • None

    Description

      (1)timeout for Procedure can not be configured.

      Procedure's timeout
      ProcedureCoordinator
        final static long TIMEOUT_MILLIS_DEFAULT = 60000;
         createProcedure(ForeignExceptionDispatcher fed, String procName, byte[] procArgs,
            List<String> expectedMembers) {
          // build the procedure
          return new Procedure(this, fed, WAKE_MILLIS_DEFAULT, TIMEOUT_MILLIS_DEFAULT,
              procName, procArgs, expectedMembers);
        }
      
      RegionServerSnapshotManager:
        /** Conf key for max time to keep threads in snapshot request pool waiting */
        public static final String SNAPSHOT_TIMEOUT_MILLIS_KEY = "hbase.snapshot.region.timeout";
        /** Keep threads alive in request pool for max of 60 seconds */
        public static final long SNAPSHOT_TIMEOUT_MILLIS_DEFAULT = 60000;
      
        public Subprocedure buildSubprocedure(SnapshotDescription snapshot) {
          long timeoutMillis = conf.getLong(SNAPSHOT_TIMEOUT_MILLIS_KEY,
              SNAPSHOT_TIMEOUT_MILLIS_DEFAULT);
          case FLUSH:
            SnapshotSubprocedurePool taskManager =
              new SnapshotSubprocedurePool(rss.getServerName().toString(), conf);
        }
      

      (2)TakeSnapshotHandler
      after snapshotRegions we should call monitor.rethrowException(); to check if there is exception and if there is we can skip the verifySnapshot

      (3)too much error message when error happened in some place.

      Attachments

        1. HBASE-8706.patch
          5 kB
          Lijin Bin
        2. HBASE-8706-2.patch
          9 kB
          Lijin Bin
        3. HBASE-8706-3.patch
          8 kB
          Lijin Bin
        4. HBASE-8706-v4.patch
          20 kB
          Matteo Bertozzi
        5. HBASE-8706-v4.patch
          20 kB
          Matteo Bertozzi

        Issue Links

          Activity

            People

              mbertozzi Matteo Bertozzi
              binlijin Lijin Bin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: