Improve serialization of big integer in Lucene.java#19348
Improve serialization of big integer in Lucene.java#19348sandeshkr419 wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
|
❌ Gradle check result for cfdf651: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for cfdf651: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
|
Since we're changing the read/write logic, we'll need to handle bwc, e.g. use version check, right? |
|
❌ Gradle check result for 4891b5f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
@asimmahmood1 You are correct regarding backward compatibility. I guess the latest gradle checks verify this with mixed cluster tests failing: Wondering if whether should we place boolean check on version or to just not do it all. Let me see if any benchmarking can help here to take the decision. |
|
This PR is stalled because it has been open for 30 days with no activity. |
Description
Lucene.javaResolves:// TODO: improve serialization of BigIntegerby changing serialization/de-serialization in this manner:case BigInteger i -> out.writeString(field.toString());->case BigInteger i -> out.writeByteArray(i.toByteArray());case 10 -> new BigInteger(in.readString());->case 10 -> new BigInteger(in.readByteArray());if-elsetoswitchcasesRelated Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.