[TRACKING ISSUE] Check nested fields of the Compact serializable objects are not serializable by other mechanisms in zero-config serialization

オープン
#1,018 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java

調査の方向性

Java側の PR 22006 と superseded issue 22004 から始め、ここで説明されているネストされたフィールドのシナリオを確認してください。完了の条件は、ゼロ設定の Compact シリアライゼーションが競合するネストされたシリアライゼーション機構を検出し、既存のキーに使用されている serializer を変更するのではなく、lookup の一貫性を保てることです。

索引モデルが issue の本文から書いたものです。

説明

The tracking issue for the Java side PR.

See https://github.com/hazelcast/hazelcast/pull/22006 for details.


It could be the case that the top level class is serializable by
Compact, but it might have nested fields, which can also be serialized
by other mechanisms like Java serialization.

The problem is, that we cache the serializers, even the reflective
serializers. And, if we cache that we can serialize Java serializable
objects with Compact, this can be problematic for such scenarios

map.put(javaSerializable, 1)
map.put(zeroConfigSerializableWithJavaSerializableField, 2)
map.get(javaSerializable) // this returns null now, as the
// key was serialized with identified, but now it is Compact

To solve this, we check if the nested field is only be
serializable with Compact (either there is no other serialization
mechanism or Compact serializer is explicitly serialized with
it with addClass or addSerializer).

Closes https://github.com/hazelcast/hazelcast/issues/22004

主要言語
C++
スター
90
フォーク
54
平均マージ
2日 24分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hazelcast/hazelcast-cpp-client のほかの issue

hazelcast/hazelcast-cpp-client の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。