These are chat archives for alibaba/dubbo

18th
Jan 2018
iluoxuan
@iluoxuan
Jan 18 2018 01:46 UTC
2.5.9 什么时候发布啊
zhaojigang
@zhaojigang
Jan 18 2018 02:07 UTC
性能测试指标及与netty3版本的性能测试对比,这个大家有做过吗?
ken.lj
@chickenlj
Jan 18 2018 02:17 UTC
@iluoxuan I am working on 2.5.9. As 2.5.9 is expected to be a bugfix version, i will decide what and when to release after review all the issues and PRs.
@zhaojigang We are considering to provide a basic performance comparison report for reference. @qinliujie is working on this.
wfd0807
@wfd0807
Jan 18 2018 03:43 UTC
dubbo 2.6.0 <dubbo:parameter>标签bug,部分配置无效
image.png
image.png
第一副图中默认协议不起作用,第二幅图中就可以
Ian Luo
@beiwei30
Jan 18 2018 03:46 UTC
@wfd0807 眼睛都看疼了,你能报个 issue 吗?
@wfd0807 详细描述下如何重现
qinliujie
@qinliujie
Jan 18 2018 07:45 UTC
@zhaojigang 使用回显hello 的方式,使用 4核8g 的机器,压满得到的数据差不多,在 7w qps 左右
dujuhui
@dujuhui
Jan 18 2018 10:49 UTC
请教大神一个dubbo服务调用之后对象丢失的问题,困扰好几天了。。。。上代码
dubbo服务提供方:
blob
实体类:
blob
Dubbo消费方:
blob

现在遇到的问题是:
在服务提供方List<ShopAddressCartVo> list = (List<ShopAddressCartVo>) result.get("addressCartList");
List里的ShopAddressCartVo对象的hashCode()都是不一样的,打印出来的日志如下:
2018-01-18 17:45:58.487 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:168 - **addressCartList里所有的店铺:
2018-01-18 17:45:58.487 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:171 - ---------------店铺id:b670c204211a47e1bf0346fd1351cfd6
2018-01-18 17:45:58.487 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:172 - ---------------店铺toString:com.zlgx.logic.vo.buyer.cart.ShopAddressCartVo@684bf64c
2018-01-18 17:45:58.487 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:173 - ---------------店铺hashcode:1749808716
2018-01-18 17:45:58.487 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:171 - ---------------店铺id:727d044320524228b3daade40237101b
2018-01-18 17:45:58.487 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:172 - ---------------店铺toString:com.zlgx.logic.vo.buyer.cart.ShopAddressCartVo@2f7433d7
2018-01-18 17:45:58.488 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:173 - ---------------店铺hashcode:796144599
2018-01-18 17:45:58.488 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:171 - ---------------店铺id:e132d340f19045bebf2c891f57bc7f22
2018-01-18 17:45:58.488 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:172 - ---------------店铺toString:com.zlgx.logic.vo.buyer.cart.ShopAddressCartVo@58d73d3b
2018-01-18 17:45:58.488 CST INFO com.zlgx.logic.impl.buyer.cart.CartServiceImpl.getAddressCartList:173 - ---------------店铺hashcode:1490500923

而到了服务消费方接收到的List<ShopAddressCartVo> list = (List<ShopAddressCartVo>) result.get("addressCartList");
List里的ShopAddressCartVo对象的hashCode()就全变为一致了,都等于0 ,日志如下:
2018-01-18 17:45:58.543 CST INFO (GoodsCartService.java:171) 1.*所有店铺id:
2018-01-18 17:45:58.543 CST INFO (GoodsCartService.java:173) -------------店铺id:b670c204211a47e1bf0346fd1351cfd6
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:174) -------------店铺toString:com.zlgx.logic.vo.buyer.cart.ShopAddressCartVo@0
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:175) ---------------店铺hashcode:0
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:173) -------------店铺id:727d044320524228b3daade40237101b
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:174) -------------店铺toString:com.zlgx.logic.vo.buyer.cart.ShopAddressCartVo@0
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:175) ---------------店铺hashcode:0
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:173) -------------店铺id:e132d340f19045bebf2c891f57bc7f22
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:174) -------------店铺toString:com.zlgx.logic.vo.buyer.cart.ShopAddressCartVo@0
2018-01-18 17:45:58.544 CST INFO (GoodsCartService.java:175) ---------------店铺hashcode:0

我想问的问题是:list里的ShopAddressCartVo对象是怎么丢失的,hashCode()为什么会都变为0,是dubbo在序列化和反序列化的过程中丢失的吗,要怎么解决?麻烦哪位大神帮忙解释一下。

zhaojigang
@zhaojigang
Jan 18 2018 11:31 UTC
好的,谢谢!!! @chickenlj @qinliujie