Skip to content

Pulsar SQL not returning latest row #6884

Closed

Description

@opera33

Describe the bug
As titled, running query on Pulsar SQL, and it doesn't return the last row of the topic

To Reproduce
For example a topic has 0 row, then I add one row by publishing a message (aaa) to pulsar server. I query the table selecting *, it shows 0 rows. Then i publish another message (bbb), and try to query select * again, row "aaa" shows up, but not "bbb", if i publish another message (ccc), and then query, 2 rows returned: "aaa", "bbb"

Expected behavior
All the rows to show after the query

Additional context
Running on Pulsar 2.4.2
Also as someone is facing issue in 2.5.0
https://apache-pulsar.slack.com/archives/C5Z4T36F7/p1588064084428500

Activity

  1. added
    type/bug
    on May 6, 2020
  2. codelipenghui commented on May 6, 2020

    @codelipenghui
    Contributor

    @opera33 You can upgrade to 2.5.1 and enable explicit LAC by setting bookkeeperExplicitLacIntervalInMills=10 in the broker.conf. This issue is fixed by #5822.

  3. self-assigned this
    on May 6, 2020
  4. added
    deprecated/question
    and removed
    type/bug
    on May 6, 2020
  5. removed their assignment
    on May 6, 2020
  6. added
    doc
    on May 7, 2020
  7. sijie commented on May 7, 2020

    @sijie
    Member

    @codelipenghui it is worth adding a note in the documentation about this setting.

  8. codelipenghui commented on May 8, 2020

    @codelipenghui
    Contributor

    close via #6908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecated/questiondoc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions