-
Notifications
You must be signed in to change notification settings - Fork 175
GH-5512 Improve NativeStore corrupt data recovery #5514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-5512 Improve NativeStore corrupt data recovery #5514
Conversation
core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/datastore/DataFile.java
Show resolved
Hide resolved
core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/datastore/DataFile.java
Show resolved
Hide resolved
core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/datastore/IDFile.java
Show resolved
Hide resolved
* Signals that data for a given id was recovered heuristically (e.g., by inferring the length from neighboring | ||
* offsets). Carries the recovered bytes to enable callers to construct a CorruptValue. | ||
*/ | ||
public class RecoveredDataException extends IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
annotate internal only
@Override | ||
public String getLabel() { | ||
if (getInternalID() == 14313522) { | ||
System.out.println(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
} | ||
|
||
private NativeValue data2value(int id, byte[] data) throws IOException { | ||
public NativeValue data2value(int id, byte[] data) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
annotate internal only
</appender> | ||
<root> | ||
<level value="warn"/> | ||
<level value="info"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
GitHub issue resolved: #5512
Briefly describe the changes proposed in this PR:
PR Author Checklist (see the contributor guidelines for more details):
mvn process-resources
to format from the command line)