You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reindex updates for zeroCountParams and PendingDelete (#5205)
* Refactored and enhanced logic in SearchParameterDefinitionManager to improve search parameter initialization, deletion.
* Updated ReindexOrchestratorJob to optimize job creation, resource counting, and search parameter readiness checks for reindex operations.
* Improved error handling, logging, and resource type derivation in both files.
"Loaded PendingDelete search parameter from last version before deletion: {Url}",
469
+
urlScalar);
470
+
}
471
+
}
472
+
elseif(!string.IsNullOrEmpty(urlScalar))
473
+
{
474
+
_logger.LogDebug(
475
+
"Skipping soft-deleted SearchParameter {ResourceId} with URL {Url} - not in PendingDelete status",
476
+
resourceId,
477
+
urlScalar);
478
+
}
479
+
else
480
+
{
481
+
_logger.LogWarning(
482
+
"Could not retrieve valid URL for soft-deleted SearchParameter {ResourceId}",
483
+
resourceId);
484
+
}
485
+
}
486
+
else
487
+
{
488
+
_logger.LogWarning(
489
+
"Could not retrieve last version for soft-deleted SearchParameter {ResourceId}",
490
+
resourceId);
491
+
}
492
+
}
493
+
else
494
+
{
495
+
_logger.LogWarning(
496
+
"Could not parse version or version is 1 for soft-deleted SearchParameter {ResourceId}, version: {Version}",
497
+
resourceId,
498
+
searchResult.Resource.Version);
499
+
}
500
+
}
501
+
catch(Exceptionex)
502
+
{
503
+
_logger.LogError(
504
+
ex,
505
+
"Error loading last version of soft-deleted SearchParameter {ResourceId}",
506
+
searchResult.Resource.ResourceId);
413
507
}
414
-
415
-
_logger.LogWarning(ex,"Error loading search parameter {Url} from data store. Issues: {Issues}",searchParam.GetStringScalar("url"),issueDetails.ToString());
416
508
}
417
-
catch(Exceptionex)
509
+
else
418
510
{
419
-
_logger.LogError(ex,"Error loading search parameter {Url} from data store.",searchParam.GetStringScalar("url"));
"Error loading search parameter {Url} from data store. Issues: {Issues}",
537
+
searchParam.GetStringScalar("url"),
538
+
issueDetails.ToString());
539
+
}
540
+
catch(Exceptionex)when(
541
+
!(exisOutOfMemoryException
542
+
||exisStackOverflowException
543
+
||exisThreadAbortException))
544
+
{
545
+
_logger.LogError(
546
+
ex,
547
+
"Error loading search parameter {Url} from data store.",
548
+
searchParam.GetStringScalar("url"));
549
+
}
420
550
}
421
551
}
422
552
}
423
553
}
424
554
while(continuationToken!=null);
555
+
556
+
_logger.LogInformation(
557
+
"Loaded {TotalLoaded} active and {TotalPendingDelete} PendingDelete search parameters from data store",
558
+
totalLoaded,
559
+
totalPendingDelete);
425
560
}
426
561
427
562
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance","CA1859:Use concrete types when possible for improved performance",Justification="Collection defined on model")]
0 commit comments