apache / apache/uima-uimaj

COMPRESSED_FILTERED_TSI produces different output on different JDKs

Open
#264 1 comment 0 reactions 0 assignees View on GitHub
🦟 Bug
Dominant language
Java
Stars
71
Forks
39
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
COMPRESSED_FILTERED_TSI produces different output on different JDKs or at least on different systems.

**To Reproduce**
Steps to reproduce the behavior:
Run `CasSerializationDeserialization_COMPRESSED_FILTERED_TSI_Test.serializeAndCompareToReferenceTest` in particular test 12 (`casWithLists`) and 13 (`casWithArrays`) on different JDKs:

* ❌ MacOS
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.252-b09, mixed mode)
* ✅ Mac OS
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Zulu 8.62.0.19-CA-macosx) (build 1.8.0_332-b09)
OpenJDK 64-Bit Server VM (Zulu 8.62.0.19-CA-macosx) (build 25.332-b09, mixed mode)
* ❌ Linux
Azul_JDK_8/zulu8.62.0.19-ca-jdk8.0.332-linux_x64

**Expected behavior**
The format should be consistent across deployments.

**Screenshots**
* [casWithLists-reference-cas.bin.zip](https://github.com/apache/uima-uimaj/files/10092475/reference-cas.bin.zip) (MacOS Zulu 8.62.0.19-CA-macosx) (build 25.332-b09, mixed mode)
* [casWithLists-actual-cas.bin.zip](https://github.com/apache/uima-uimaj/files/10092478/casWithLists-actual-cas.bin.zip) (MacOS AdoptOpenJDK)(build 1.8.0_252-b09)

**Please complete the following information:**
- Version: 3.4.0-SNAPSHOT

Contributor guide

Open the contributing guide

Research direction

Start by running CasSerializationDeserialization_COMPRESSED_FILTERED_TSI_Test.serializeAndCompareToReferenceTest, especially tests 12 (casWithLists) and 13 (casWithArrays), on the JDK environments listed in the issue. Compare the reference and actual CAS binaries to identify what varies across JDKs. Done means COMPRESSED_FILTERED_TSI produces the same format across the listed deployments and the tests pass consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.