Skip to content

Conversation

hmottestad
Copy link
Contributor

GitHub issue resolved: #5512

Briefly describe the changes proposed in this PR:


PR Author Checklist (see the contributor guidelines for more details):

  • my pull request is self-contained
  • I've added tests for the changes I made
  • I've applied code formatting (you can use mvn process-resources to format from the command line)
  • I've squashed my commits where necessary
  • every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

* 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 {
Copy link
Contributor Author

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();
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

@hmottestad hmottestad enabled auto-merge (squash) October 13, 2025 07:41
@hmottestad hmottestad merged commit ca320c1 into main Oct 13, 2025
11 checks passed
@hmottestad hmottestad deleted the GH-5512-improve-nativestore-corrupt-data-recovery branch October 13, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve data recovery when NativeStore is corrupt

1 participant