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

PyPI can swallow errors when the simple index is being re-written

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.28.1, 3.30.1
    • Fix Version/s: 3.31.0
    • Component/s: PyPI
    • Notability:
      n/a

      Description

      The following message was observed in a customer log:

      2021-05-12 04:54:02,043+0000 WARN [qtp976626720-3335210] *UNKNOWN org.sonatype.nexus.repository.pypi.internal.orient.OrientPyPiProxyFacetImpl - An error occurred re-writing the index for package example

      Problem

      The actual error was not logged, only that there was one. Further there was no corresponding request.log line with the same thread id to match to error, so we can't even tell what the client may have seen here.

      Expected

      If you are logging a WARN message about a problem, always log some context, what happened, what type of error, while processing what thing - As much as possible. Always propagate any such error to the request.log line if driven by an actual request thread.

        Attachments

          Activity

            People

            Assignee:
            mkalachov Maksym Kalachov
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title