snowdrop / narayana-spring-boot

Narayana Spring Boot autoconfiguration and starter
Apache License 2.0
46 stars 43 forks source link

Revert "Generate right-length nodeIdentifier/ XID" #141

Closed graben closed 6 months ago

graben commented 6 months ago

Resolves #140

Update to #132/#136/quarkusio/quarkus#30491

graben commented 6 months ago

For MariaDB I can confirm that the shorten transactionManagerId (xa node name) is causing an issue in command XA START. Generated hex String of xid is too long.

@geoand: Maybe hashing approach has drawback also for Quarkus. Should be verified!

geoand commented 6 months ago

So if I understand correctly, you are changing the default behavior to not shorten the ID? Why this change of default (which is a breaking change)?

graben commented 6 months ago

This feature was introduced in the last version 3.1.0 as a back port from Quarkus where it is disabled by default. So I do just add what should be there already. But it seems that this feature has drawbacks anyway in Spring boot and Quarkus which should be evaluated. 😉

geoand commented 6 months ago

Understood, thanks

graben commented 6 months ago

Well, It seems the patch at Quarkus is wrong. SHA-224 creates a 28 sized byte array but after creating a UTF-8 String from it the corresponding byte array is somewhere around size 40-60 much bigger than 28 :-/

geoand commented 6 months ago

Thanks for investigating.

Please open a relevant issue in the Quarkus repo

graben commented 6 months ago

In the meantime I would suggest to revert this feature for a 3.1.1 patch release until a better fix is found.

@geoand : okay for you?

geoand commented 6 months ago

Sounds good to me

graben commented 6 months ago

@geoand : Revert #136 as discussed and opened quarkusio/quarkus#40256 for Quarkus. @jacobdotcosta: Could you plz do a 3.1.1 patch release after merge?

jacobdotcosta commented 6 months ago

I'll release 3.1.1.

jacobdotcosta commented 6 months ago

Relased 3.1.1.Beta1, @graben could you check if it's OK before releasing the final version?

graben commented 6 months ago

Looks good to me, but could really test it tomorrow, okay for you?

jacobdotcosta commented 6 months ago

Sure, no problem. Thanks.

graben commented 6 months ago

@jacobdotcosta: build and tested successfully. Ready to release! ;-)

jacobdotcosta commented 6 months ago

3.1.1 released @graben

graben commented 6 months ago

@jacobdotcosta thx, but don't miss the scm tag 😉

jacobdotcosta commented 6 months ago

fixed :(