Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-448

IllegalStateException seen when log to be truncated does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.3.0
    • server
    • None

    Description

      exception seen  in datanode.log

      ---------------------------------------------

      java.lang.IllegalStateException: File /data/disk1/ozone/meta/ratis/5689db14-7ca4-4198-8826-a21df55a3ae0/current/log_2466-2484 to be truncated does not exist
       at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:60)
       at org.apache.ratis.server.storage.RaftLogWorker$TruncateLog.execute(RaftLogWorker.java:459)
       at org.apache.ratis.server.storage.RaftLogWorker.run(RaftLogWorker.java:216)
       at java.lang.Thread.run(Thread.java:748)

       

       

      [root@ctr-e139-1542663976389-22144-01-000007 current]# ls -lhart /data/disk1/ozone/meta/ratis/5689db14-7ca4-4198-8826-a21df55a3ae0/current
      total 2.7M
      -rw-r--r-- 1 root root 16K Dec 4 10:15 log_0-41
      -rw-r--r-- 1 root root 9.1K Dec 4 10:15 log_42-52
      -rw-r--r-- 1 root root 12K Dec 4 10:15 log_53-62
      -rw-r--r-- 1 root root 15K Dec 4 10:15 log_63-70
      -rw-r--r-- 1 root root 16K Dec 4 10:15 log_71-91
      -rw-r--r-- 1 root root 12K Dec 4 10:15 log_92-101
      -rw-r--r-- 1 root root 15K Dec 4 10:16 log_102-109
      ..
      ..
      ..
      ..
      -rw-r--r-- 1 root root 1.9K Dec 4 10:48 log_2438-2441
      -rw-r--r-- 1 root root 187 Dec 4 10:48 raft-meta.conf
      -rw-r--r-- 1 root root 14K Dec 4 10:48 log_2442-2457
      -rw-r--r-- 1 root root 15K Dec 4 10:48 log_2458-2465
      -rw-r--r-- 1 root root 49 Dec 4 10:48 raft-meta
      -rw-r--r-- 1 root root 16K Dec 4 10:48 log_2466-2483
      drwxr-xr-x 2 root root 12K Dec 4 10:48 .
      -rw-r--r-- 1 root root 7.9K Dec 4 10:48 log_inprogress_2485
      drwxr-xr-x 4 root root 4.0K Dec 4 10:48 ..
       
       
      

       

       

      Attachments

        1. RATIS-448.001.patch
          3 kB
          Lokesh Jain
        2. nodes-ozone-logs-1543923396.tar.gz
          913 kB
          Nilotpal Nandi

        Activity

          People

            ljain Lokesh Jain
            nilotpalnandi Nilotpal Nandi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: