-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 修复复制快照有可能丢失文件的问题; 2. 将Snapshot从JournalKeeperState类中分离出来,结构更清晰; 3. 增加了Snapshot完整性的验证,避免加载使用不完整快照导致的数据错误; 4. 修改复制Snapshot实现,现在空目录也会被复制。
- Loading branch information
Showing
11 changed files
with
283 additions
and
132 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
journalkeeper-core-api/src/main/java/io/journalkeeper/exceptions/StateQueryException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.journalkeeper.exceptions; | ||
|
||
/** | ||
* @author LiYue | ||
* Date: 2019-03-25 | ||
*/ | ||
public class StateQueryException extends RuntimeException { | ||
public StateQueryException(String msg) { | ||
super(msg); | ||
} | ||
|
||
public StateQueryException(Throwable throwable) { | ||
super(throwable); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.