-
Notifications
You must be signed in to change notification settings - Fork 51
fix HashMap deserialization #955
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
base: master
Are you sure you want to change the base?
Conversation
|
This fix does not cover all cases.
Serialization result
Serialization result |
|
@badgerwithagun what do you think about it? |
|
Thanks @mfilatov . I originally had it like this and the tests blew up. I've enabled for the PR, let's see if it was just me.... |
|
@mfilatov I can't find your comment about copying the response from |
|
@badgerwithagun You're probably talking about this: I was trying to get around the serialization issue and wasn't thinking about multi-threading at the time :) |
|
Nice. Build is failing btw |
… fixed formatting
|
@badgerwithagun I removed the tests from the commit, that I added earlier, added session map copying and fixed code formatting. |
|
I fixed the test in the commit, but I'm not sure it's a good idea. |
|
@badgerwithagun I think this is the final version, but I've prepared two more options just in case. |
|
@badgerwithagun Two more alternative options #962 and #963 |
transactionoutbox-core/src/main/java/com/gruelbox/transactionoutbox/TransactionOutboxImpl.java
Show resolved
Hide resolved
|
Hey @mfilatov - feel free to close the other two. I'm uncomfortable with the hard reliance on |
|
Hi @badgerwithagun That is why we have different serialization behavior for final and non-final implementations of
Also that's why I've prepared two other solutions to this issue. |
|
Hi @badgerwithagun |
|
I intend to merge this for now as others are starting to report the same issue and would like to try this solution Just waiting for the build to run green |
|
Some test failures @mfilatov |
|
@badgerwithagun fixed |
|
@mfilatov I think we need to support For the time being, how about we just take whatever is returned from |
|
I have reverted back my old changes in P.S.: but maybe you meant something else |
|
@badgerwithagun Could you please run the build to check that everything is ok? |
@badgerwithagun I found that code in PR #952
works incorrectly for
"session":{"java.util.HashMap":{"traceId":"0000","spanId":"00","traceFlags":"00"}}We will have following in result Map:
"java.util.HashMap" -> ""