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

MetricsHBaseServer should record all kinds of Exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.11
    • 2.5.0, 3.0.0-alpha-3, 2.4.12
    • metrics
    • None

    Description

      We can define a kind of Exception such as OtherExcpetions to record exceptions doesn't in the following kinds of exceptions. Only debug those exceptions by LOG.debug("Unknown exception type", throwable); is not helpful to find errors.

      if (throwable != null) {
        if (throwable instanceof OutOfOrderScannerNextException) {
          source.outOfOrderException();
        } else if (throwable instanceof RegionTooBusyException) {
          source.tooBusyException();
        } else if (throwable instanceof UnknownScannerException) {
          source.unknownScannerException();
        } else if (throwable instanceof ScannerResetException) {
          source.scannerResetException();
        } else if (throwable instanceof RegionMovedException) {
          source.movedRegionException();
        } else if (throwable instanceof NotServingRegionException) {
          source.notServingRegionException();
        } else if (throwable instanceof FailedSanityCheckException) {
          source.failedSanityException();
        } else if (throwable instanceof MultiActionResultTooLarge) {
          source.multiActionTooLargeException();
        } else if (throwable instanceof CallQueueTooBigException) {
          source.callQueueTooBigException();
        } else if (throwable instanceof QuotaExceededException) {
          source.quotaExceededException();
        } else if (throwable instanceof RpcThrottlingException) {
          source.rpcThrottlingException();
        } else if (LOG.isDebugEnabled()) {
          LOG.debug("Unknown exception type", throwable);
        }
      }
      

       

       

      Attachments

        1. RequestTooBigException.png
          503 kB
          Xiaolin Ha

        Issue Links

          Activity

            People

              Xiaolin Ha Xiaolin Ha
              Xiaolin Ha Xiaolin Ha
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: