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

TableOutputFormat#getRecordWriter javadoc misleads

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • None
    • None

    Description

      Some feedback from a user was that it was not plain that getRecordWriter returns a NEW instance on each invocation. The base Interface javadoc on OutputWriter would seem to indicate there is one instance for a whole 'job'... That is not what we do. So, just reading the javadoc, you'd not bother with closing the returned record writer since the framework will do the close up for you; thats what the javadoc implies. This made it so it seemed hbase was losing writes.

      Lets fix in javadoc at least.

      Attachments

        1. 14574.txt
          2 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: