apache / apache/dubbo-admin

dubbo接口测试,输入ID值为雪花ID时,会出现精度丢失,造成无法测试

Open
#1,245 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.1k
Forks
2.2k
Avg merge
10d 12h
Merged PRs (30d)
4

Description

- [ ] I have searched the [issues](https://github.com/apache/dubbo-admin/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [REAMDE](https://github.com/apache/dubbo-admin/blob/develop/README.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo Admin version: 0.6.0, dubbo3.1.8-3.2.7
* Registry center detail (type and version): nacos 2.1
* Operating System version: linux
* Java version: 1.8u202

### Steps to reproduce this issue

1.用于测试的dubbo方法就是根据ID获取数据库数据;接收一个long类型。
2.数据库主键由百度雪花ID生成,1694620889412087810
3.将该值通过dubbo admin 服务测试->测试方式,赋值会再输入框丢失鼠标焦点时由1694620889412087810->1694620889412087800。
4.从而影响测试执行结果。

Contributor guide

Open the contributing guide

Research direction

Start with the Dubbo Admin service test flow described in the reproduction, especially the input field behavior when it loses focus. Reproduce the conversion of 1694620889412087810 to 1694620889412087800, then trace the value handling and verify that the exact snowflake ID is retained and passed to the long parameter.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.