-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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: migrate to new kafka spring cloud stream #20433
Conversation
b5e8a5f
to
0da96ec
Compare
@mshima - how do i test this failing changes on my local.? Also when I am this branch - i cant run jhipster |
@codedsun you need to remove the files from generator-jhipster/generators/kafka/files.mjs Lines 29 to 34 in e17f956
|
generators/server/templates/src/main/java/package/config/WebConfigurer.java.ejs
Outdated
Show resolved
Hide resolved
generators/kafka/templates/src/main/java/package/web/rest/KafkaResource.java.ejs
Outdated
Show resolved
Hide resolved
462b697
to
3aa1351
Compare
Done @mshima . |
@mshima dont know why these workflows are failing, but what steps u mentioned in the sample project were working fine. Can you help me next what should I do? |
generators/kafka/templates/src/main/java/package/web/rest/KafkaConfiguration.java.ejs
Outdated
Show resolved
Hide resolved
generators/kafka/templates/src/main/java/package/web/rest/KafkaConfiguration.java.ejs
Outdated
Show resolved
Hide resolved
generators/kafka/templates/src/main/java/package/web/rest/KafkaConfiguration.java.ejs
Outdated
Show resolved
Hide resolved
generators/kafka/templates/src/main/java/package/web/rest/KafkaConfiguration.java.ejs
Outdated
Show resolved
Hide resolved
generators/kafka/templates/src/main/java/package/web/rest/KafkaConfiguration.java.ejs
Outdated
Show resolved
Hide resolved
generators/kafka/templates/src/main/java/package/web/rest/KafkaConfiguration.java.ejs
Outdated
Show resolved
Hide resolved
generators/server/templates/src/main/java/package/config/WebConfigurer.java.ejs
Outdated
Show resolved
Hide resolved
generators/kafka/templates/src/main/java/package/config/KafkaSseConsumer.java.ejs
Show resolved
Hide resolved
@mshima Thanks, I will push my changes by thursday. |
3aa1351
to
9391ab3
Compare
@mshima done the changes, please check the jhipster version is correct or not in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to run
UPDATE_SNAPSHOT=all npx mocha generators/kafka
CI is failling:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project sample-mongo-kafka: Compilation failure: Compilation failure:
[851](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:852)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[18,46] cannot find symbol
[852](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:853)
Error: symbol: variable MimeTypeUtils
[853](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:854)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[854](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:855)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[28,13] cannot find symbol
[855](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:856)
Error: symbol: variable log
[856](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:857)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[857](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:858)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[29,13] cannot find symbol
[858](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:859)
Error: symbol: variable emitters
[859](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:860)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[860](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:861)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[33,27] cannot find symbol
[861](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:862)
Error: symbol: class SseEmitter
[862](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:863)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[863](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:864)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[35,73] cannot find symbol
[864](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:865)
Error: symbol: variable MediaType
[865](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:866)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[866](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:867)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[35,38] cannot find symbol
[867](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:868)
Error: symbol: method event()
[868](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:869)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[869](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:870)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[36,30] cannot find symbol
[870](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:871)
Error: symbol: class IOException
[871](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:872)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[872](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:873)
Error: /home/runner/work/generator-jhipster/generator-jhipster/app/src/main/java/tech/jhipster/sample/config/KafkaConfiguration.java:[37,25] cannot find symbol
[873](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:874)
Error: symbol: variable log
[874](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:875)
Error: location: class tech.jhipster.sample.config.KafkaConfiguration
[875](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:876)
Error: -> [Help 1]
[876](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:877)
Error:
[877](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:878)
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
[878](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:879)
Error: Re-run Maven using the -X switch to enable full debug logging.
[879](https://github.com/jhipster/generator-jhipster/actions/runs/3597751065/jobs/6059838044#step:20:880)
Error:
generators/kafka/cleanup.mjs
Outdated
@@ -40,4 +40,8 @@ export default function cleanupKafkaFilesTask({ application }) { | |||
if (this.isJhipsterVersionLessThan('7.7.1')) { | |||
this.removeFile(`${application.javaPackageSrcDir}config/KafkaProperties.java`); | |||
} | |||
if (this.isJhipsterVersionLessThan('7.9.3')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (this.isJhipsterVersionLessThan('7.9.3')) { | |
if (this.isJhipsterVersionLessThan('7.10.0')) { |
@mshima done the changes. |
4a1770d
to
6c26640
Compare
6c26640
to
6f120da
Compare
6f120da
to
c92b133
Compare
@mshima - i see some test are not able to found the files, though they were working fine for my created project and the steps u provided to test. Can you help me for the CI build to pass? |
@mshima please run the tests..after ur changes 1 test was failing I fixed that. Thanks |
Hey @mshima , am I doing something wrong in code? Please guide me from here. |
Is missing a conversation somewhere.
The got value is the char[] value of the expected |
@codedsun please reopen the PR against main. |
@mshima this was closed, i though this got resolved by someone else, can i still work ? |
@codedsun was closed because the target branch was merged to main. |
@codedsun Can you create a new PR based on main branch? |
fix: #20297 migrate to new kafka spring cloud stream
Please make sure the below checklist is followed for Pull Requests.
When you are still working on the PR, consider converting it to Draft (below reviewers) and adding
skip-ci
label, you can still see CI build result at your branch.