Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8707 Implement an async pure c++ HDFS client
  3. HDFS-9616

libhdfs++ Add runtime hooks to allow a client application to add low level monitoring and tests.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • hdfs-client
    • None

    Description

      It would be nice to have a set of callable objects and corresponding event hooks in useful places that can be set by a client application at runtime.

      This is intended to provide a scalable mechanism for implementing counters (#retries, #namenode requests) or application specific testing e.g. simulate a dropped connection when the test system running the client application requests.

      Current implementation plan is a struct full of callbacks (std::functions) owned by the FileSystemImpl. A callback could be set (or left as a no-op) and when the code hits the corresponding event it will be invoked with a reference to the object (for context) and each method argument by reference. The callback returns a bool: true to continue execution or false to bail out of the calling method.

      Attachments

        1. HDFS-9616.HDFS-8707.004.patch
          52 kB
          Bob Hansen
        2. HDFS-9616.HDFS-8707.003.patch
          52 kB
          Bob Hansen
        3. HDFS-9616.HDFS-8707.002.patch
          53 kB
          Bob Hansen

        Activity

          People

            bobhansen Bob Hansen
            James Clampffer James Clampffer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: