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

Duplicated persistence units and entities in dev ui #20683

Closed
Postremus opened this issue Oct 12, 2021 · 3 comments · Fixed by #20691
Closed

Duplicated persistence units and entities in dev ui #20683

Postremus opened this issue Oct 12, 2021 · 3 comments · Fixed by #20691
Assignees
Labels
area/dev-ui env/windows Impacts Windows machines kind/bug Something isn't working
Milestone

Comments

@Postremus
Copy link
Member

Describe the bug

Dev ui duplicates entities and persistence units in the "persistence unit" view on hot reload:

Expected behavior

No duplication.

Actual behavior

image

How to Reproduce?

Download the hibernate-orm-quickstart
mvn quarkus:dev
open dev ui
Go to the persistence unit view
Press s in the console to force restart
refresh the page
The entities are duplicated

If your app has multiple persistence units, they get duplicated as well

Output of uname -a or ver

MSYS_NT-10.0-19043 NANB7NLNVP2 3.1.7-340.x86_64 2021-03-26 22:17 UTC x86_64 Msys

Output of java -version

openjdk 17 2021-09-14 OpenJDK Runtime Environment Temurin-17+35 (build 17+35) OpenJDK 64-Bit Server VM Temurin-17+35 (build 17+35, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.3.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739) Maven home: C:\eclipse\tools\apache-maven Java version: 17, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\17 Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Additional information

No response

@Postremus Postremus added the kind/bug Something isn't working label Oct 12, 2021
@quarkus-bot quarkus-bot bot added env/windows Impacts Windows machines triage/needs-triage labels Oct 12, 2021
@geoand
Copy link
Contributor

geoand commented Oct 12, 2021

Can you check 2.4.0.CR1?

I remember fixing something similar

@Postremus
Copy link
Member Author

@geoand Still happens with 2.4.0.CR1.

image

@geoand
Copy link
Contributor

geoand commented Oct 12, 2021

Thanks for reporting.

#20691 takes care of it

yrodiere added a commit that referenced this issue Oct 12, 2021
Apply another fix for multiple entries Hibernate ORM DevUI entry
@quarkus-bot quarkus-bot bot added this to the 2.5 - main milestone Oct 12, 2021
@aloubyansky aloubyansky modified the milestones: 2.5 - main, 2.4.0.Final Oct 18, 2021
aloubyansky pushed a commit to aloubyansky/quarkus that referenced this issue Oct 18, 2021
@gsmet gsmet modified the milestones: 2.4.0.Final, 2.3.1.Final Oct 18, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev-ui env/windows Impacts Windows machines kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants