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

Generate right-length nodeIdentifier/ XID #132

Closed
wants to merge 3 commits into from

Conversation

deepred-dev
Copy link
Contributor

Generate right-length nodeIdentifier
if nodeIdentifier is longer than 28 bytes, the XID generated by narayana ist too long, and and error occurs. This shortens the nodeIdentifier if necessary, while keeping it unique.

Fix ported from quarkus
quarkusio/quarkus#30491
quarkusio/quarkus@07b3a4c

Generate right-length nodeIdentifier
if nodeIdentifier is longer than 28 bytes, the XID generated by narayana ist too long, and it breaks.
This shortens it, while nodeIdentifier remains unique.

Fix ported from quarkus
quarkusio/quarkus#30491
@deepred-dev deepred-dev changed the title Update NarayanaPropertiesInitializer.java Generate right-length nodeIdentifier Feb 6, 2024
@deepred-dev deepred-dev changed the title Generate right-length nodeIdentifier Generate right-length nodeIdentifier/ XID Feb 6, 2024
Copy link
Contributor

@graben graben left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@geoand geoand left a comment

Choose a reason for hiding this comment

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

Thanks!

@geoand
Copy link
Member

geoand commented Mar 4, 2024

Imports look like they are not sorted.

Can you fix that please?

Thanks

@deepred-dev
Copy link
Contributor Author

deepred-dev commented Mar 4, 2024 via email

@geoand
Copy link
Member

geoand commented Mar 4, 2024

Thanks!

@cmoulliard
Copy link
Member

Can you fix the checkstyle violation please ?

Error:  Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.3.0:check (checkstyle-validation) on project narayana-spring-boot-core: You have 1 Checkstyle violation. -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:  
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Error:  
Error:  After correcting the problems, you can resume the build with the command
Error:    mvn <args> -rf :narayana-spring-boot-core

Fix accidentally removed line
@graben
Copy link
Contributor

graben commented Mar 5, 2024

@geoand: Could you review again?

@geoand
Copy link
Member

geoand commented Mar 5, 2024

Mind squashing and rebasing the commits please?

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.

4 participants