-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
CAMEL-21256: camel-github startingSha=last does not work with large history #15678
CAMEL-21256: camel-github startingSha=last does not work with large history #15678
Conversation
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
Can you update the PR as there are formatting changes
|
I aligned the CommitConsumer constructor arguments on line 49. That was the only unnecessary formatting change that I saw. Was there anything else? The other changes I made in my initial commit involved moving the existing code over 4 spaced to be inside a synchronized block. |
/component-test github Result ✅ The tests passed successfully |
🤖 The Apache Camel test robot will run the tests for you 👍 |
…tConsumer.poll() logic from executing until after CommitConsume.doStart() method completes.
13d7f82
to
f74d197
Compare
…istory (#15678) * CAMEL-21256: use most recent sha when startingSha=last, prevent CommitConsumer.poll() logic from executing until after CommitConsume.doStart() method completes. * CAMEL-21256: fix formatting of CommitConsumer constructor arguments * CAMEL-21256: fix formatting on line 87 of CommitConsumer * CAMEL-21256: remove extra empty line from CommitConsumerLastTest
Description
I encountered an issue using startingSha=last with a repository with a large history. The last sha is not correctly resolved. CAMEL-17473 did not resolve this issue.
The following issues were discovered from real-world testing and a unit test:
Target
camel-3.x
, whereas Camel 4 uses themain
branch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTests
locally from root folder and I have committed all auto-generated changes.