LouisLou2 opened a new issue, #2107:
URL: https://github.com/apache/fury/issues/2107

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/fury/issues) 
and found no similar issues.
   
   
   ### Version
   
   Commit: bc6a0b586aa2ab99e3a0059ee645c7b9901e92a3
   
   ### Component(s)
   
   Python
   
   ### Minimal reproduce step
   
   1. Check out the repository at commit 
bc6a0b586aa2ab99e3a0059ee645c7b9901e92a3
   2. Run the CrossLanguageTest.java tests, specifically the 
testSerializeSimpleStruct case
   3. The test fails with an error indicating hash inconsistency between Java 
and Python:
   ```
   ERROR:root:Execute ['test_serialize_simple_struct', 
'/home/leo/projects/fury_newest_dev/fury/java/fury-core/test_serialize_simple_struct']
 failed with Hash 16360 is not consistent with 550 for class <class 
'__main__.ComplexObject2'>
   ```
   
   This issue occurs across all sub-test cases in CrossLanguageTest.java, with 
each test failing due to struct hash inconsistency during cross-language 
communication.
   
   ### What did you expect to see?
   
   The struct hash calculation should be consistent between Java and Python 
implementations, allowing cross-language serialization tests to pass 
successfully.
   
   ### What did you see instead?
   
   Tests fail with hash inconsistency errors like:
   ```
   pyfury.error.ClassNotCompatibleError: Hash 16360 is not consistent with 550 
for class <class '__main__.ComplexObject2'>
   ```
   
   ### Anything Else?
   
   I manually modified the Python source code to bypass the hash verification, 
and the subsequent steps completed without issues. This indicates that while 
the hash calculation is inconsistent, the actual data structure and 
serialization format are compatible between the two implementations.
   
   This suggests it could be a bug in the hash calculation algorithm 
implementation in one or both languages, or possibly that the Python 
implementation is lagging behind the Java implementation in terms of feature 
parity or updates to the hashing algorithm.
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to