[
https://issues.apache.org/jira/browse/THRIFT-3672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer closed THRIFT-3672.
------------------------------
Resolution: Incomplete
Please reopen when additional info becomes available. The curent description is
way too vague.
> client blocked when remote call
> --------------------------------
>
> Key: THRIFT-3672
> URL: https://issues.apache.org/jira/browse/THRIFT-3672
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (General)
> Affects Versions: 0.9.3
> Reporter: jackyfang
>
> this is is the thrift file:
> {code}
> include 'shared.thrift'
> include "pos.thrift"
> include "notice.thrift"
> namespace py syncs.sync
> namespace java syncs.sync
> const string SERVICENAMESPACE = 'sync'
> typedef i32 int
> struct Product{
> 1: string code,
> 2: string name,
> 3: string categoryName,
> 4: optional double price_sell,
> 5: optional double price_buy
> }
> struct OrderItem{
> 1: string productCode,
> 2: double price,
> 3: double multiply,
> 4: double amount,
> 5: double discount
> }
> struct Order{
> 1: string id,
> 2: list<OrderItem> items,
> 3: double amount,
> 4: double actualAmount,
> }
> struct StockCurrentBase{
> 1: string productCode,
> 2: int version,
> }
> struct StockCurrent{
> 1: StockCurrentBase stockBase,
> 2: optional double multiply,
> 3: optional Product product
> }
> service SyncService{
> bool postProducts(1: shared.PosContext posContext, 2: list<Product>
> products),
> bool postOrders(1: shared.PosContext posContext, 2: list<Order> orders),
> list<Order> pullOrders(1: shared.PosContext posContext),
> list<StockCurrent> syncStocks(1: shared.PosContext posContext, 2:
> list<StockCurrentBase> clientStocks)
> }
> {code}
> bug resolve:
> when i change the block:
> {code}
> struct StockCurrent{
> 1: StockCurrentBase stockBase,
> 2: optional double multiply,
> 3: optional Product product
> }
> {code}
> to :
> {code}
> struct StockCurrent{
> 1: StockCurrentBase stockBase,
> 2: optional double multiply,
>
> }
> {code}
> everything works ok!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)