You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "alex-nt (via GitHub)" <gi...@apache.org> on 2023/07/03 14:05:06 UTC

[GitHub] [camel] alex-nt opened a new pull request, #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

alex-nt opened a new pull request, #10569:
URL: https://github.com/apache/camel/pull/10569

   … be inline with Kafka config types
   
   # Description
   
   The option for [max.poll.interval.ms](https://camel.apache.org/components/3.20.x/kafka-component.html#_component_option_maxPollIntervalMs) from camel is not the same type as the one from [kafka](https://docs.confluent.io/platform/current/installation/configuration/consumer-configs.html#max-poll-interval-ms). With the latest version we see a nasty type incompatibility error.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (note that Camel 3 uses `camel-3.x`, whereas Camel 4 uses the `main` branch)
   
   # Tracking
   - [x] [CAMEL-19570](https://issues.apache.org/jira/browse/CAMEL-19570)
   
   <!--
   # *Note*: trivial changes like, typos, minor documentation fixes and other small items do not require a JIRA issue. In this case your pull request should address just this issue, without pulling in other changes.
   -->
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful subject line and body.
   
   <!--
   If you're unsure, you can format the pull request title like `[CAMEL-XXX] Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the appropriate JIRA issue.
   -->
   
   - [ ] I have run `mvn clean install -DskipTests` locally and I have committed all auto-generated changes
   
   <!--
   You can run the aforementioned command in your module so that the build auto-formats your code. This will also be verified as part of the checks and your PR may be rejected if if there are uncommited changes after running `mvn clean install -DskipTests`.
   
   You can learn more about the contribution guidelines at https://github.com/apache/camel/blob/main/CONTRIBUTING.md
   -->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1618368307

   :star2: Thank you for your contribution to the Apache Camel project! :star2: 
   
   :camel: Maintainers, please note that first-time contributors *require manual approval* for the GitHub Actions to run.
   
   :warning: Please note that the changes on this PR may be **tested automatically** if they change components.
   
   :robot: Use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot.
   
   If necessary Apache Camel Committers may access logs and test results in the job summaries!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] alex-nt commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "alex-nt (via GitHub)" <gi...@apache.org>.
alex-nt commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1620102515

   Also, how could I reproduce this locally? `mvn verify` passes for me in that module :(
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] essobedo commented on a diff in pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo commented on code in PR #10569:
URL: https://github.com/apache/camel/pull/10569#discussion_r1251697804


##########
components/camel-azure/pom.xml:
##########


Review Comment:
   Please exclude this as it is not related



##########
catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd:
##########


Review Comment:
   Please exclude this as it is not related



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] alex-nt commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "alex-nt (via GitHub)" <gi...@apache.org>.
alex-nt commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1618369540

   I have to admit that the generated code was changed by hand as I couldn't figure out how to generate it. Any guidance about that? Did I miss something along the way?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] alex-nt commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "alex-nt (via GitHub)" <gi...@apache.org>.
alex-nt commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1618754357

   I did try to do so, but it still picks up that thing from the wrong place (or another place). The steps I followed are:
   
   1. *camel-kafka* `mvn clean install -DskipTest`
   2. *root* `mvn clean install -pl dsl/camel-componentdsl`
   
   I get a lot of weird errors like:
   
   ```
   camel/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureFilesComponentBuilderFactory.java:[23,45] package org.apache.camel.component.file.azure does not exist
   
   /camel/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/OpensearchComponentBuilderFactory.java:[52,34] cannot find symbol
   [ERROR]   symbol:   class OpensearchComponent
   [ERROR]   location: interface org.apache.camel.builder.component.dsl.OpensearchComponentBuilderFactory
   ```
   
   And if I look at the regenerated code, it is the old type there.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] alex-nt commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "alex-nt (via GitHub)" <gi...@apache.org>.
alex-nt commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1618710876

   What's up with `camel-componentdsl`, it seems to pickup older versions of packages, not the locally built ones. Am I wrong in this observation? It keeps picking up `Long` for my parameter from somewhere, I can't find where.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] alex-nt commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "alex-nt (via GitHub)" <gi...@apache.org>.
alex-nt commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1618415679

   @essobedo Thanks! I was able to confirm that I didn't forget anything generated-code-wise 😄 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] davsclaus merged pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #10569:
URL: https://github.com/apache/camel/pull/10569


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] oscerd commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1619672275

   > I did try to do so, but it still picks up that thing from the wrong place (or another place). The steps I followed are:
   > 
   > 1. _camel-kafka_ `mvn clean install -DskipTest`
   > 2. _root_ `mvn clean install -pl dsl/camel-componentdsl`
   > 
   > I (and the build agent) get a lot of weird errors like:
   > 
   > ```
   > camel/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureFilesComponentBuilderFactory.java:[23,45] package org.apache.camel.component.file.azure does not exist
   > 
   > /camel/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/OpensearchComponentBuilderFactory.java:[52,34] cannot find symbol
   > [ERROR]   symbol:   class OpensearchComponent
   > [ERROR]   location: interface org.apache.camel.builder.component.dsl.OpensearchComponentBuilderFactory
   > ```
   > 
   > And if I look at the regenerated code, it is the old type there.
   
   Try to run a full build.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] essobedo commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1618739021

   > What's up with `camel-componentdsl`, it seems to pickup older versions of packages, not the locally built ones. Am I wrong in this observation? It keeps picking up `Long` for my parameter from somewhere, I can't find where.
   
   It needs to be re-generated too, so you need to the same steps as previously described but with `dsl/camel-componentdsl`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1619894399

   :no_entry_sign: There are (likely) no changes in core core to be tested in this PR


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] essobedo commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1618403891

   > I have to admit that the generated code was changed by hand as I couldn't figure out how to generate it. Any guidance about that? Did I miss something along the way?
   
   From the root directory, launch `mvn clean install -pl components/camel-kafka`, it will launch the maven plugin that generates the source code. If it is not enough, you can force the code to be regenerated by removing the folder `components/camel-kafka/src/generated/java/org/apache/camel/`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1619894363

   ### Components test results:
   
   | Total | Tested | Failed :x: | Passed :white_check_mark: | 
   | --- | --- | --- |  --- |
   | 1 | 1 | 0 | 1 |


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] alex-nt commented on pull request #10569: CAMEL-19570: Change max.poll.interval.ms type from Long to Integer to…

Posted by "alex-nt (via GitHub)" <gi...@apache.org>.
alex-nt commented on PR #10569:
URL: https://github.com/apache/camel/pull/10569#issuecomment-1620101237

   For the failed test, I can either revert the change in the https://github.com/apache/camel/pull/10569/files#diff-7183c76097f802b4e7d5deb6f8ad104e5d3d9e27e6b511dbfa5d108f16d9261b file (I might have been a bit overzealous in changing it *everywhere*) or I can update the version to use `4.0.0-SNAPSHOT` (but that might cause circular dependency issues?). Which one is the preferred option?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org