-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Inconsistency occurs in Java Proto builder when calling build() after clear() #10624
Comments
@googleberg Is there any progress with this bug? |
@choxsword I can see the behavior you describe, but I'm curious what negative impact you see from the inconsistency. |
@choxsword nm, I think I see what you are saying now. It creates a stale cache problem. |
Will fixing this issue be taken into consideration in future version? |
@googleberg hey bro! Is there any plan of this issue? |
@googleberg looking forward to you reply! |
Hi @choxsword, yes, I have a fix for this, it won't be in the next release, but the one after. |
@googleberg thanks a lot. plz call me if that release is published. |
@googleberg hey, I'm wondering about which time will that release be published? |
Omitting this step was leading to stale cached versions of nested messages. See #10624
This will be used in verfication of #10624
@googleberg thanks for your timly support! I've seen the fix for this issus. By the way, how long will it take for me to see a official |
@choxsword The fix for this should be in the next release. |
@googleberg when will next release be published? The newest version is the v21.9 relesase published one month ago. |
The 21.10 release was delayed from the week of 2022/11/14 to next week (of 2022/11/28) |
@googleberg Execuse me, is that release delayed again? |
it is in progress. |
### What changes were proposed in this pull request? This pr aims upgrade `protobuf-java` from 3.21.12 to 3.22.0 ### Why are the changes needed? The new version bring some improvements like: - Use bit-field int values in buildPartial to skip work on unset groups of fields. (protocolbuffers/protobuf@2326aef) - Fix serialization warnings in generated code when compiling with Java 18 and above (protocolbuffers/protobuf#10561) - Enable Text format parser to skip unknown short-formed repeated fields. (protocolbuffers/protobuf@6dbd413) - Add serialVersionUID to ByteString and subclasses (protocolbuffers/protobuf#10718) and some bug fix like: - Mark default instance as immutable first to avoid race during static initialization of default instances. (protocolbuffers/protobuf#10770) - Fix Timestamps fromDate for negative 'exact second' java.sql.Timestamps (protocolbuffers/protobuf#10321) - Fix Timestamps.fromDate to correctly handle java.sql.Timestamps before unix epoch (protocolbuffers/protobuf#10126) - Fix bug in nested builder caching logic where cleared sub-field builders would remain dirty after a clear and build in a parent layer. protocolbuffers/protobuf#10624 The release notes as follows: - https://github.com/protocolbuffers/protobuf/releases/tag/v22.0 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions Closes #40084 from LuciferYang/SPARK-42490. Authored-by: yangjie01 <[email protected]> Signed-off-by: Sean Owen <[email protected]>
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment. This issue is labeled |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it. This issue was closed and archived because there has been no new activity in the 14 days since the |
Omitting this step was leading to stale cached versions of nested messages. See protocolbuffers#10624
This will be used in verfication of protocolbuffers#10624
Verify fix for protocolbuffers#10624
After calling
builder()
afterclear()
of Pb builer , the consistency ofisClean
in message builder may break up. Here is the code snippet example.We can see that finally the result printed is inconsistent between
test3
and its subfieldtest1
. And the reason is thatbuild()
operation does not mark thoseclear()
ed child fields asisClean
. This problem causes child field to be dirty, while parent is cleanThe text was updated successfully, but these errors were encountered: