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

HTable can still write data after calling the close method.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • 1.2.0, 2.1.0, 2.0.0
    • None
    • Client
    • None
    • HBase 1.2.0

    Description

      HTable can still write data after calling the close method.

       

      val conn = ConnectionFactory.createConnection(conf)
      var table = conn.getTable(TableName.valueOf(tableName))
      val put = new Put(rowKey.getBytes())
      put.addColumn("cf".getBytes(), columnField.getBytes(), endTimeLong, Bytes.toBytes(line.getLong(8)))
      table.put(put)
      //call table close() method
      table.close()
      //put again
      val put1 = new Put(rowKey4.getBytes())
      out1.addColumn("cf".getBytes(), columnField.getBytes(), endTimeLong, Bytes.toBytes(line.getLong(8)))
      table.put(put1)
      

       

      after call close method ,can alse write data into HBase,I think this does not match close logic.

      Attachments

        1. HBase-21392_v1.patch
          9 kB
          lixiaobao

        Activity

          People

            Unassigned Unassigned
            q977734161 lixiaobao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified