Skip to content

chore(qwp): exclude dropped datagrams from processedCount#7168

Merged
bluestreak01 merged 1 commit into
masterfrom
jh_flaky_udp_dropped_accounting
May 27, 2026
Merged

chore(qwp): exclude dropped datagrams from processedCount#7168
bluestreak01 merged 1 commit into
masterfrom
jh_flaky_udp_dropped_accounting

Conversation

@jerrinot
Copy link
Copy Markdown
Contributor

drainReceiver() in the malformed-datagram tests polls on processedCount + totalDroppedCount. Bumping processedCount on drops double-counted them, letting drainReceiver return one datagram short and pass even when a trailing valid datagram never arrived.

processDatagram() now returns a DATAGRAM_DROPPED flag on the four error paths, and both runSerially() callers skip the processedCount++ when it is set.

this stabilizes a flaky testTooShortElevenBytes()

drainReceiver() in the malformed-datagram tests polls on
processedCount + totalDroppedCount. Bumping processedCount on
drops double-counted them, letting drainReceiver return one
datagram short and pass even when a trailing valid datagram
never arrived.

processDatagram() now returns a DATAGRAM_DROPPED flag on the
four error paths, and both runSerially() callers skip the
processedCount++ when it is set.

this stabilizes a flaky testTooShortElevenBytes()
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 27, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a766a256-d880-4290-b464-dac78fe5f028

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jh_flaky_udp_dropped_accounting

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jerrinot jerrinot added the Flaky Test Depicts a test that breaks due to race condition or wrong assumption label May 27, 2026
@mtopolnik
Copy link
Copy Markdown
Contributor

[PR Coverage check]

😍 pass : 8 / 8 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cutlass/qwp/server/QwpUdpReceiver.java 6 6 100.00%
🔵 io/questdb/cutlass/qwp/server/LinuxMMQwpUdpReceiver.java 2 2 100.00%

@bluestreak01 bluestreak01 merged commit 483e79b into master May 27, 2026
51 checks passed
@bluestreak01 bluestreak01 deleted the jh_flaky_udp_dropped_accounting branch May 27, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Flaky Test Depicts a test that breaks due to race condition or wrong assumption

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants