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

Procedure-V2: Exception encountered in WALProcedureStore#rollWriter() should be properly handled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0, 1.1.2, 1.3.0, 2.0.0
    • proc-v2
    • None
    • Reviewed

    Description

      Observed the following in recent Jenkins build (https://builds.apache.org/job/HBase-TRUNK/6732/console):

      testWALfencingWithoutWALRolling(org.apache.hadoop.hbase.master.procedure.TestMasterFailoverWithProcedures)  Time elapsed: 9.938 sec  <<< ERROR!
      org.apache.hadoop.ipc.RemoteException: failed to create file /user/jenkins/test-data/0d9e3047-6bb1-4219-9ed2-5b9884176321/MasterProcWALs/state-00000000000000000002.log for DFSClient_NONMAPREDUCE_-966558185_1 for client 127.0.0.1 because current leaseholder is trying to recreate file.
      	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.recoverLeaseInternal(FSNamesystem.java:2589)
      	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:2386)
      

      When file creation fails (e.g. due to RemoteException), we should handle the exception by returning false.
      Similar handling can be applied to failure in writing header.

      Thanks to mbertozzi for offline discussion.

      Attachments

        1. 14234-v1.txt
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: