Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case clause error in replicator _scheduler/docs response #5008

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

nickva
Copy link
Contributor

@nickva nickva commented Mar 16, 2024

When a job is completing, there is a period of time when the document isn't updated yet with the state, and it's also not present in the scheduler ets table. In that case we return nil, but we don't account for that case in the _scheduler/docs fabric calls.

To fix it, account for nil whenever we get the doc state.

@nickva nickva force-pushed the jenkins-fix-replicator-nil-case-clause branch 2 times, most recently from 54e927e to e8fb826 Compare March 17, 2024 16:38
When a job is completing, there is a period of time when the document isn't
updated yet with the state, and it's also not present in the scheduler ets
table. In that case we return `nil`, but we don't account for that case in the
_scheduler/docs fabric calls.

To fix it, account for `nil` whenever we get the doc state.
@nickva nickva force-pushed the jenkins-fix-replicator-nil-case-clause branch from e8fb826 to 6aa04d0 Compare March 17, 2024 16:55
@nickva nickva merged commit 77c5418 into main Mar 17, 2024
62 checks passed
@nickva nickva deleted the jenkins-fix-replicator-nil-case-clause branch March 17, 2024 17:56
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.

None yet

3 participants