Skip to content

rgw/lua: use cached bytecode for postauth scripts - #71052

Open
chardan wants to merge 1 commit into
ceph:mainfrom
chardan:rgw-lua-fix-79426-cached_bytecode
Open

rgw/lua: use cached bytecode for postauth scripts#71052
chardan wants to merge 1 commit into
ceph:mainfrom
chardan:rgw-lua-fix-79426-cached_bytecode

Conversation

@chardan

@chardan chardan commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Lua bypassed cached bytecode and reloaded source scripts-- not any more.

Addresses: https://tracker.ceph.com/issues/79426

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse F. Williamson jfw@ibm.com

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse F. Williamson <jfw@ibm.com>
@chardan chardan self-assigned this Aug 13, 2026
@chardan
chardan requested a review from yuvalif August 13, 2026 21:26
Comment thread src/rgw/rgw_process.cc
auto [script, rc] = rgw::lua::read_script_or_bytecode(
s, s->penv.lua.manager.get(), s->bucket_tenant, s->yield,
rgw::lua::context::postAuth);
if (rc == -ENOENT) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is terrible IMO to not clean up this branching while we're in there, but it's not strictly necessarily to fix the bug.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this could eb done in the other PR.

@chardan
chardan marked this pull request as ready for review August 13, 2026 21:29
@chardan
chardan requested a review from a team as a code owner August 13, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants