Skip to content

fix: prevent panic when JSON_REPORT missing, add retry logic#13

Merged
edcdavid merged 1 commit intoredhat-cne:mainfrom
edcdavid:fix-panic
Jan 22, 2026
Merged

fix: prevent panic when JSON_REPORT missing, add retry logic#13
edcdavid merged 1 commit intoredhat-cne:mainfrom
edcdavid:fix-panic

Conversation

@edcdavid
Copy link
Copy Markdown

  • Add bounds check for strings.LastIndex to prevent slice bounds panic when JSON_REPORT is not found in pod logs
  • Add retry mechanism for getL2Disc with 3 attempts and 15s wait between retries to handle transient failures during L2 discovery

@edcdavid edcdavid force-pushed the fix-panic branch 4 times, most recently from 13733f2 to 6270c64 Compare January 22, 2026 00:04
- Add bounds check for strings.LastIndex to prevent slice bounds panic
  when JSON_REPORT is not found in pod logs
- Add retry mechanism for getL2Disc with 3 attempts and 15s wait
  between retries to handle transient failures during L2 discovery
@edcdavid edcdavid merged commit 82d7ebb into redhat-cne:main Jan 22, 2026
4 checks passed
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.

1 participant