vdmitrienko commented on code in PR #7064:
URL: https://github.com/apache/ignite-3/pull/7064#discussion_r2564681342
##########
modules/index/src/main/java/org/apache/ignite/internal/index/IndexBuildTask.java:
##########
@@ -156,24 +160,34 @@ void start() {
return;
}
- LOG.info("Start building the index: [{}]", createCommonIndexInfo());
+ if (afterDisasterRecovery) {
+ LOG.warn("Start building the index: [{}] due to disaster recovery
of an AVAILABLE index. This shouldn't normally occur",
+ createCommonIndexInfo()
+ );
+ } else {
+ LOG.info("Start building the index: [{}]",
createCommonIndexInfo());
+ }
try {
+ taskListener.onIndexBuildStarted(taskId);
+
supplyAsync(partitionStorage::highestRowId, executor)
.thenApplyAsync(this::handleNextBatch, executor)
.thenCompose(Function.identity())
.whenComplete((unused, throwable) -> {
if (throwable != null) {
+ String errorMessage = String.format("Index build
error: [%s]", createCommonIndexInfo());
if (ignorable(throwable)) {
- LOG.debug("Index build error: [{}]",
throwable, createCommonIndexInfo());
+ LOG.info(errorMessage, throwable);
Review Comment:
Message example:
```
Ignorable index build error [zoneId=0, tableId=1, partitionId=3, indexId=2,
java.util.concurrent.CompletionException:
org.apache.ignite.internal.storage.StorageClosedException: IGN-CMN-65535
Storage is already closed TraceId:5653837d]
```
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]