Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

View file
nameScanningApplicationJobList_se_2_14_129_patched.sql
height250

Problem: Unable to rescan vCenter application with version 2.14.205.

...

There is an issue with the DataTTL column when setting the recan rescan for vCenters. Even though the value is set to 1 (which is the value for daily rescan) there rescan is happening.

...

UPDATE ApplicationScanHistory SET AttemptCount = 1, NextScanDate = GETDATE()
WHERE ApplicationID IN
(SELECT ApplicationID FROM Application WHERE ApplicationTypeEnumID = 12)

 


Or Run the patch included

Line 44-55 has been added.


Code Block
languagesql
	-- Reset any Application that DataTTL has expired since the last scan attempt
	UPDATE dbo.[ApplicationScanHistory]
		SET [AttemptCount] = @MaxFailures-1
	WHERE [ApplicationScanHistoryID]IN
		(
			SELECT [ApplicationScanHistoryID]
			FROM [ApplicationScanHistory] ash WITH( NOLOCK )
			JOIN [Application] a WITH( NOLOCK ) ON a.[ApplicationID] =ash.[ApplicationID]
			WHERE ([ServiceTypeEnumID] = @ServiceTypeEnumID
				AND a.[DataTTL] is not null 
				AND DATEADD(DAY, a.[DataTTL], ash.[LastAttemptDate]) <= @CurrentDate)
				AND ash.[AttemptCount] >= @MaxFailures);	






 

Filter by label (Content by label)
showLabelsfalse
max5
spacesCSKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("vcenter","fix") and type = "page" and space = "CSKB"
labels vCenter Fix

...