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

some fixes to jira source #5203

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Galactus22625
Copy link
Member

Description

Commit: Prevent Polling when there is already a leader scheduler
Stop race condition which causes jira pipeline to infinitely write to open search on loop because lastpolltime doesnt get updated properly

Commit: verify internet address everytime we invoke restapi
addresses appsec finding in osc-02 where we have a (TOCATOU) time of checkout time of use vulnerability

Commit: re-parallelize crawler call
re-parallelizing initial pagination and child partition so that we don’t have high latency at the start where we wait to crawl all pages before we start writing documents

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Maxwell Brown <[email protected]>
Copy link
Contributor

@san81 san81 left a comment

Choose a reason for hiding this comment

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

Nice work Maxwell!

futureList.add(crawlerTaskExecutor.submit(() ->
service.getJiraEntities(sourceConfig, lastPollTime, itemInfoQueue), false));
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

These changes look good but I do not see corresponding changes to the JavaIteratorTest.java file. When using futures testing is very important as we realized with Lambda code. Please make sure all these changes have corresponding tests

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.

3 participants