We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5fe38 commit fbdd468Copy full SHA for fbdd468
core/src/main/java/dev/keva/core/aof/AOFContainer.java
@@ -33,7 +33,16 @@ public void init() {
33
FileOutputStream fos = new FileOutputStream(getWorkingDir() + "keva.aof", true);
34
output = isExists ? new AppendOnlyObjectOutputStream(fos) : new ObjectOutputStream(fos);
35
} catch (IOException e) {
36
- log.error("Error creating AOF file", e);
+ if (e instanceof FileNotFoundException) {
37
+ log.info("AOF file not found, creating new file...");
38
+ if (e.getMessage().contains("Permission denied")) {
39
+ log.error("Permission denied to access AOF file, please check your file permissions");
40
+ System.exit(1);
41
+ }
42
+ } else {
43
+ log.error("Error writing to AOF file", e);
44
45
46
}
47
48
if (kevaConfig.getAofInterval() != 0) {
0 commit comments