Enhanced: Use Gson serializer by hard coding in MetatData module
- Dominant language
- Java
- Stars
- 41.6k
- Forks
- 26.4k
- Avg merge
- 15h 13m
- Merged PRs (30d)
- 4
Description
### Environment
* Dubbo version: 2.7.3
* Operating System version: xxx
* Java version: xxx
1. Is it need which the serializer util should be decided by dubbo's user.
Involved method:org.apache.dubbo.metadata.support.AbstractMetadataReport#storeConsumerMetadataTask
line:272
`...
Gson gson = new Gson();
String data = gson.toJson(serviceParameterMap);
doStoreConsumerMetadata(consumerMetadataIdentifier, data);
saveProperties(consumerMetadataIdentifier, data, true, !syncReport);`
Contributor guide
Research direction
Start at org.apache.dubbo.metadata.support.AbstractMetadataReport#storeConsumerMetadataTask and trace how serviceParameterMap is serialized before doStoreConsumerMetadata is called. Determine the required serializer-selection behavior from the issue, then verify that this metadata path no longer relies on an unsuitable hard-coded choice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100