[TRACKING ISSUE] Disallow different types of generic records in GenericRecordBuilder.setGenericRecord API-1773

Aperta
#1,084 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

La issue menziona GenericRecordBuilder.setGenericRecord e rimanda alla PR #23522 per i dettagli lato Java; inizia da lì per capire la validazione prevista. Il lavoro è completato quando il setter rifiuta un GenericRecord del tipo errato, compact invece di portable o viceversa, anziché fallire in seguito durante toData.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The tracking issue for the Java side PR.

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


Right now, GenericRecordBuilder.setGenericRecord does not throw if the value is not of the same type of generic record. (compact for compact, portable for portable)

We instead throw a cast exception while trying to do toData. We should do it during the setter.

Breaking changes (list specific methods/types/messages):

  • If some users were misusing the API, they may be affected

Checklist:

  • Labels (Team:, Type:, Source:, Module:) and Milestone set
  • Label Add to Release Notes or Not Release Notes content set
  • Request reviewers if possible
  • Send backports/forwardports if fix needs to be applied to past/future releases
  • New public APIs have @Nonnull/@Nullable annotations
  • New public APIs have @since tags in Javadoc

I don't think we need backports for this change.

Lingua principale
C++
Stelle
90
Fork
54
Merge medio
2g 24m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hazelcast/hazelcast-cpp-client

Tutte le issue di hazelcast/hazelcast-cpp-client

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.