apache / apache/servicecomb-java-chassis

Otional对象问题

Open
#3,593 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

今天遇到一个问题,接口定义返回的对象为Optional<自定义对象>,通过RPC方式实现,在provider打出日志确认为Optioanl不为空,但在cosumer得到确是Optional.empty();

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, entry points, or tests are named. Start by reproducing the RPC call with an Optional custom object and compare the provider's serialized response with the consumer's deserialized value. Done means the consumer receives the non-empty Optional and a regression test covers the round trip.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.