apache / apache/pulsar

[Pulsar Sql] The number of query result records of pulsar SQL is less than that sent by producer

Open
#11,158 7 comments 0 reactions 0 assignees View on GitHub
lifecycle/stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 22h
Merged PRs (30d)
142

Description

**Describe the bug**
Pulsar version 2.6.2

The number of query result records of pulsar SQL is less than that sent by producer.
1、Producer sends 7 records;
![image](https://user-images.githubusercontent.com/54351417/124050203-a8d78b80-da4c-11eb-832f-5f35a7875c2e.png)
2、Pulsar SQL only queries 4 records;
sql: select * from XXX;
![image](https://user-images.githubusercontent.com/54351417/124050251-c86eb400-da4c-11eb-831f-399ae6cbdb53.png)

3、Topic has no subscription;

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported Pulsar 2.6.2 flow: send 7 records, confirm the topic has no subscription, and run `select * from XXX;` through Pulsar SQL. Compare the producer count with the 4 returned records and use the issue's screenshots and comment history to identify the missing-record conditions; done means the cause is isolated and a regression test or verified fix covers the case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.