(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.
This commit is contained in:
Viktor Lofgren 2024-07-08 19:19:30 +02:00
parent d90bd340bb
commit 12a2ab93db

View File

@ -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();
}