Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-34357

Log clear reason why records are filtered during database migration

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.39.0
    • Fix Version/s: None
    • Component/s: Database Migrator
    • Labels:
    • Notability:
      3

      Description

      Issue:

      During migration from Orient to Postgres database, many records may get filtered, but no reason in the migration log is given. There can be many thousands of records that get filtered and Customer need to know the reason why to determine if migration is successful.

      Below are some examples

      14:52:45 [main] INFO c.s.n.d.m.p.content.AssetProcessor - Filtered nuget Asset record AssetRecord(bucket=#19:0, format=nuget, attributes={nuget={requirelicenseacceptance=false, reportabuseurl=https://www.nuget.org/packages/Microsoft.AspNet.WebApi.Client/4.0.20505/ReportAbuse, keywords=microsoft.aspnet.webapi.client microsoft asp.net web api client libraries (rc) this package adds support for formatting and content negotiation to system.net.http. it includes support for json, xml, and form url encoded data. microsoft aspnet webapi aspnetwebapi httpclient microsoft, packagesize=91438, description=This package adds support for formatting and content negotiation to System.Net.Http. It includes support for JSON, XML, and form URL encoded data., projecturl=http://www.asp.net/web-api, title=Microsoft ASP.NET Web API Client Libraries (RC), gallerydetailsurl=https://www.nuget.org/packages/Microsoft.AspNet.WebApi.Client/4.0.20505, packagehashalgorithm=SHA512, id=Microsoft.AspNet.WebApi.Client, summary=, lastupdated=1338506862927, isprerelease=false, created=1338506862927, published=1338506862927, version=4.0.20505, downloadcount=118607768, dependencies=Microsoft.Net.Http:2.0.20505.0|Newtonsoft.Json:4.5.1, tags=Microsoft AspNet WebApi AspNetWebApi HttpClient, versiondownloadcount=398770, location=https://www.nuget.org/api/v2/package/Microsoft.AspNet.WebApi.Client/4.0.20505, nameorder=microsoft asp.net web api client libraries (rc)microsoft.aspnet.webapi.client, packagehash=yo5FpQHPf2hIWSLrqinDExZLQ7rUF4apyS55UzU4XnJsYNPd/w8v++61ujmnEprIa4jGeq6l+H9ixObtn+T/og==, licenseurl=http://www.microsoft.com/web/webpi/eula/MVC4_prerelease_eula.htm, authors=Microsoft, islatestversion=false, isabsolutelatest_version=false}}, component=#24:3733694, name=Microsoft.AspNet.WebApi.Client/4.0.20505, size=0, contentType=null, createdBy=null, createdByIp=null, blobRef=null, lastUpdated=1632925529983, lastDownloaded=0, blobCreated=0, blobUpdated=0)
      
      13:43:29 [main] INFO c.s.n.d.m.p.c.ComponentProcessor - Filtered maven2 Component record ComponentRecord(bucket=#17:17, format=maven2, attributes={maven2={baseVersion=2.13, groupId=org.apache.maven.surefire, artifactId=surefire-testng-utils, version=2.13}}, group=org.apache.maven.surefire, name=surefire-testng-utils, version=2.13, tags=null, lastUpdated=1494536679974)
      

      Expected behaviour:

      When a record is filtered, a clear reason should be logged explaining why record was filtered.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              msurani Mahendra Surani
              Last Updated By:
              Hardeep Nagra Hardeep Nagra
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title