Skip to content

{184822865} Fix db:consumer() returning number on transient error#6044

Merged
emelialei88 merged 1 commit into
bloomberg:mainfrom
emelialei88:fix/lua-consumer-returns-number-on-error
Jun 26, 2026
Merged

{184822865} Fix db:consumer() returning number on transient error#6044
emelialei88 merged 1 commit into
bloomberg:mainfrom
emelialei88:fix/lua-consumer-returns-number-on-error

Conversation

@emelialei88

@emelialei88 emelialei88 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • luabb_trigger_register() returns the result of luabb_error() (which is 1) when check_retry_conditions() detects a transient error. Since CDB2_TRIG_REQ_SUCCESS == 1, the caller skips error handling and returns the corrupted Lua stack value (-1 number) instead of raising an error.
  • Fix: discard the luabb_error() return value and set rc = -1 explicitly, so the caller's error path executes correctly.

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
sc_downgrade [timeout] **quarantined**

…sient error

Signed-off-by: Emelia Lei <wlei29@bloomberg.net>
@emelialei88 emelialei88 force-pushed the fix/lua-consumer-returns-number-on-error branch from a6e235e to f57cdcf Compare June 26, 2026 17:14
@emelialei88 emelialei88 merged commit d23cb75 into bloomberg:main Jun 26, 2026
4 checks passed

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Error ⚠.
Regression testing: Success ✓.

The first 10 failing tests are:
ssl_san
consumer_non_atomic_default_consumer_generated **quarantined**
ssl_set_cmd
ssl_prefer
ssl_dbname
sc_downgrade [timeout] **quarantined**
sql_logfill_autodisable [timeout]

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants