You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Jitendra Nath Pandey (JIRA)" <ji...@apache.org> on 2018/11/22 20:18:00 UTC

[jira] [Commented] (RATIS-431) RaftServer terminates while hitting FileNotFoundException while truncating a log

    [ https://issues.apache.org/jira/browse/RATIS-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16696244#comment-16696244 ] 

Jitendra Nath Pandey commented on RATIS-431:
--------------------------------------------

Is it reproducing, after recent fixes (RATIS-410, RATIS-430, HDDS-850) ?

> RaftServer terminates while hitting FileNotFoundException while truncating a log
> --------------------------------------------------------------------------------
>
>                 Key: RATIS-431
>                 URL: https://issues.apache.org/jira/browse/RATIS-431
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>            Reporter: Shashikant Banerjee
>            Assignee: Lokesh Jain
>            Priority: Major
>
> {code:java}
> 2018-11-16 09:54:42,949 INFO org.apache.ratis.server.impl.RoleInfo: 0813f1a9-61be-4cab-aa05-d5640f4a8341: start FollowerState
> 2018-11-16 09:54:43,005 INFO org.apache.ratis.server.impl.RaftServerImpl: 0813f1a9-61be-4cab-aa05-d5640f4a8341: change Leader from null to e3e9a703-55bb-482b-a0a1-ce8000474ac2 at term 4 for appendEntries, leader elected after 61ms
> 2018-11-16 09:54:43,006 INFO org.apache.ratis.server.impl.RaftServerImpl: 0813f1a9-61be-4cab-aa05-d5640f4a8341: set configuration 3917: [e3e9a703-55bb-482b-a0a1-ce8000474ac2:172.26.32.230:9858, c6ad906f-7e71-4bac-bde3-d22bc1aa8c7d:172.26.32.231:9858, 0813f1a9-61be-4cab-aa05-d5640f4a8341:172.26.32.228:9858], old=null at 3917
> 2018-11-16 09:54:43,391 WARN org.apache.ratis.util.FileUtils: Failed to Files.delete /data/disk2/scm/ratis/a85fce1a-2aef-49cf-899e-894b9c74e7f6/current/log_3930-3930: java.nio.file.NoSuchFileException: /data/disk2/scm/ratis/a85fce1a-2aef-49cf-899e-894b9c74e7f6/current/log_3930-3930
> 2018-11-16 09:54:43,393 ERROR org.apache.ratis.server.storage.RaftLogWorker: Terminating with exit status 1: 0813f1a9-61be-4cab-aa05-d5640f4a8341-RaftLogWorker failed.
> java.nio.file.NoSuchFileException: /data/disk2/scm/ratis/a85fce1a-2aef-49cf-899e-894b9c74e7f6/current/log_3930-3930
>         at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
>         at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>         at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>         at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
>         at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
>         at java.nio.file.Files.delete(Files.java:1126)
>         at org.apache.ratis.util.FileUtils.lambda$delete$8(FileUtils.java:82)
>         at org.apache.ratis.util.LogUtils.runAndLog(LogUtils.java:52)
>         at org.apache.ratis.util.FileUtils.delete(FileUtils.java:81)
>         at org.apache.ratis.util.FileUtils.deleteFile(FileUtils.java:72)
>         at org.apache.ratis.server.storage.RaftLogWorker$TruncateLog.execute(RaftLogWorker.java:477)
>         at org.apache.ratis.server.storage.RaftLogWorker.run(RaftLogWorker.java:216)
>         at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)