Skip to content

Fix #527, Honor dequeue_enabled when starting pending transactions - #539

Open
cueon wants to merge 1 commit into
nasa:devfrom
cueon:fix-527-dequeue-enable
Open

cueon wants to merge 1 commit into
nasa:devfrom
cueon:fix-527-dequeue-enable

Conversation

@cueon

@cueon cueon commented Nov 16, 2026

Copy link
Copy Markdown

Checklist (Please check before submitting)

Describe the contribution
Fixes #527

  • Problem: Disabling dequeue on a channel (by command or table) has no effect; pending transactions are still started.
  • Cause: The dequeue_enabled check was dropped in a0914c4 (Fix #481, simplify and consolidate state machines #482) when CF_CFDP_CycleTx() was removed. The flag is still written but never read.
  • Fix: Check the flag in CF_CFDP_StartFirstPending().

Testing performed

  • All 14 CF coverage test runners pass (built with ENABLE_UNIT_TESTS=true).

  • Added a disabled-dequeue case to Test_CF_CFDP_StartFirstPending; it fails without the fix.

  • Ran core-cpu1 from the cFS bundle and compared with and without the fix:

    • Disable Dequeue command, then Tx File (class 1 and class 2)
    • Table dequeue_enabled = 0, with Tx File and with a polling directory

    In every case the transaction started while dequeue was disabled without the fix, and waited until Enable Dequeue with the fix.

Expected behavior changes
Pending TX transactions stay on the PEND queue while dequeue is disabled. Active transactions are not affected (the pre-a0914c4 check also paused them; this follows the user's guide instead).

System(s) tested on

  • Hardware: Apple Silicon Mac (arm64), Docker
  • OS: Debian 12
  • Versions: nasa/CF dev @ 0dbc2b7, cFS bundle dev @ 1847c75

Third party code
None.

Contributor Info - All information REQUIRED for consideration of pull request
Kyuwon Jeong (@cueon, jkw5033@gmail.com), Personal

The per-channel dequeue_enabled flag was still set by the enable/disable
dequeue commands and the configuration table, but nothing read it after
the state machine rework in a0914c4, so pending transactions were always
started.

Check the flag in CF_CFDP_StartFirstPending() so that transactions stay
on the PEND queue while dequeue is disabled. Transactions that are
already active are not affected.
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.

Dequeue enable/disable has no effect

1 participant