Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3672

client blocked when remote call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 0.9.3
    • None
    • Compiler (General)
    • None

    Description

      this is is the thrift file:

      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)
      }
      

      bug resolve:
      when i change the block:

      struct StockCurrent{
          1: StockCurrentBase stockBase,
          2: optional double multiply,
          3: optional Product product
      }
      

      to :

      struct StockCurrent{
          1: StockCurrentBase stockBase,
          2: optional double multiply,
         
      }
      

      everything works ok!

      Attachments

        Activity

          People

            Unassigned Unassigned
            jackyfang jackyfang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: