Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9768

RecordingJsonParser produces incomplete json when updated document stream is larger than input parser's buffer size

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1, 6.2, 6.3
    • Fix Version/s: 6.4
    • Component/s: update
    • Security Level: Public (Default Security Level. Issues are Public)
    • Flags:
      Patch

      Description

      While using srcField, RecordingJsonParser produce incomplete json when updated document stream is larger than buffer size (8192).
      Fast fix is to align all documents in stream to buffer size. Another is attached in patch bellow.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 590d31f311c092aa97bc64b1a28a9dbf934b0e52 in lucene-solr's branch refs/heads/master from Andrzej Bialecki
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=590d31f ]

        SOLR-9768 RecordingJsonParser produces incomplete json (Wojciech Stryszyk via ab)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 590d31f311c092aa97bc64b1a28a9dbf934b0e52 in lucene-solr's branch refs/heads/master from Andrzej Bialecki [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=590d31f ] SOLR-9768 RecordingJsonParser produces incomplete json (Wojciech Stryszyk via ab)
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 4874f039537565bd9f7a129bb5165686ea7a87db in lucene-solr's branch refs/heads/branch_6x from Andrzej Bialecki
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4874f03 ]

        SOLR-9768 RecordingJsonParser produces incomplete json (Wojciech Stryszyk via ab)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 4874f039537565bd9f7a129bb5165686ea7a87db in lucene-solr's branch refs/heads/branch_6x from Andrzej Bialecki [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4874f03 ] SOLR-9768 RecordingJsonParser produces incomplete json (Wojciech Stryszyk via ab)
        Hide
        ab Andrzej Bialecki added a comment -

        Wojciech Stryszyk: thank you for the patch and the unit test! The fix has been committed to master and to branch_6x (to become 6.4).

        Show
        ab Andrzej Bialecki added a comment - Wojciech Stryszyk : thank you for the patch and the unit test! The fix has been committed to master and to branch_6x (to become 6.4).

          People

          • Assignee:
            ab Andrzej Bialecki
            Reporter:
            wstryszyk Wojciech Stryszyk
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development