Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2029

Mark.checkMark returns empty string when null is expected with mongodb storage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3.1
    • Component/s: storage
    • Labels:
      None

      Description

      Gora mongodb backend returns empty Utf8 for null field values.
      This leads to Mark.checkMark never returns null, so multiple checks on null fail e.g. in DbUpdateMapper, GeneratorMapper etc.

      Temporal fix is to check whether value is null or empty

      See patch
      https://github.com/newpointer/nutch/commit/4bdc0bab39ede7c01ee057c3429f5f0e90d5e48f

      and related gora issue
      https://issues.apache.org/jira/browse/GORA-423

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                AlexanderYastrebov Alexander Yastrebov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: