From 12a2ab93db9af81c3cdb73037fd8d0dd01e87d42 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Mon, 8 Jul 2024 19:19:30 +0200 Subject: [PATCH] (actor) Improve error messages for convert-and-load Some copy-and-paste errors had snuck in and every index construction error was reported as "repartitioned failed"; updated with more useful messages. --- .../java/nu/marginalia/actor/task/ConvertAndLoadActor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/execution/java/nu/marginalia/actor/task/ConvertAndLoadActor.java b/code/execution/java/nu/marginalia/actor/task/ConvertAndLoadActor.java index 085dffed..45b7d77a 100644 --- a/code/execution/java/nu/marginalia/actor/task/ConvertAndLoadActor.java +++ b/code/execution/java/nu/marginalia/actor/task/ConvertAndLoadActor.java @@ -146,7 +146,7 @@ public class ConvertAndLoadActor extends RecordActorPrototype { var rsp = processWatcher.waitResponse(mqIndexConstructorOutbox, ProcessService.ProcessId.INDEX_CONSTRUCTOR, id); if (rsp.state() != MqMessageState.OK) - yield new Error("Repartition failed"); + yield new Error("Forward index construction failed"); else yield new ReindexFull(); } @@ -155,7 +155,7 @@ public class ConvertAndLoadActor extends RecordActorPrototype { var rsp = processWatcher.waitResponse(mqIndexConstructorOutbox, ProcessService.ProcessId.INDEX_CONSTRUCTOR, id); if (rsp.state() != MqMessageState.OK) - yield new Error("Repartition failed"); + yield new Error("Full index construction failed"); else yield new ReindexPrio(); } @@ -164,7 +164,7 @@ public class ConvertAndLoadActor extends RecordActorPrototype { var rsp = processWatcher.waitResponse(mqIndexConstructorOutbox, ProcessService.ProcessId.INDEX_CONSTRUCTOR, id); if (rsp.state() != MqMessageState.OK) - yield new Error("Repartition failed"); + yield new Error("Prio index construction failed"); else yield new SwitchIndex(); }