Close DuckDB recovery gaps for allocation failures

This commit is contained in:
Intelli committed 2026-10-12 16:13:17 -06:00
1 parent e24d36bc82
commit d76b254af4
2 files changed
+4 -3

No files matched your search

@@ -215,7 +215,8 @@ public final class DuckDBRecovery {
if (normalized.contains("database has been invalidated")
|| normalized.contains("database must be restarted")
|| normalized.contains("failed to rollback transaction")
|| normalized.contains("out of memory error")) {
|| normalized.contains("out of memory error")
|| normalized.contains("failed to pin block of size")) {
return true;
}
}
@@ -1,6 +1,7 @@
package net.coreprotect.database.lookup;
import net.coreprotect.config.ConfigHandler;
import net.coreprotect.database.Database;
import net.coreprotect.database.DuckDBLookupQuery;
import net.coreprotect.database.LocationQuery;
import net.coreprotect.database.statement.EntitySpawnStatement;
@@ -10,7 +11,6 @@ import net.coreprotect.language.Selector;
import net.coreprotect.listener.channel.PluginChannelListener;
import net.coreprotect.model.action.LookupActions;
import net.coreprotect.utility.*;
import net.coreprotect.utility.ErrorReporter;
import org.bukkit.Material;
import org.bukkit.block.BlockState;
import org.bukkit.command.CommandSender;
@@ -227,7 +227,7 @@ public class BlockLookup {
ConfigHandler.lookupCommand.put(commandSender.getName(), x + "." + y + "." + z + "." + worldId + ".0." + limit + (entitySpawnRowId == null ? "" : "." + entitySpawnRowId));
}
catch (Exception e) {
ErrorReporter.report(e);
Database.reportDatabaseFailure(e);
}
return resultText;
}