You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/02/01 08:41:01 UTC

[GitHub] [incubator-doris] 924060929 opened a new issue #5335: [Bug] ScalaValueReader throw TApplicationException: get_next failed: out of sequence response: expected 21 but got 20

924060929 opened a new issue #5335:
URL: https://github.com/apache/incubator-doris/issues/5335


   **Describe the bug**
   
   When I use spark on doris with config `doris.deserialize.arrow.async=true`,ScalaValueReader throw TApplicationException: get_next failed: out of sequence response: expected 21 but got 20.
   
   And then, ScalaValueReader will **block forever**
   
   This is because, when `doris.deserialize.arrow.async=true`, `get_next()` will invoke in **asyncThread**,but `close()` will invoke in **current thread**, the sequence will encounter race condition 
   
   **To Reproduce**
   run
   ``` scala
   val sparkSettings = new SparkSettings(sparkConf)
   sparkSettings.setProperty("doris.deserialize.arrow.async", "true")
   val partitions = RestService.findPartitions(sparkSettings, logger)
   val reader = new ScalaDorisRowValueReader(partitions.get(0), partitions.get(0).settings())
   while (reader.hasNext) {
     val nextBatch = reader.next // invoke in asyncThread
   }
   reader.close() // invoke in current thread
   ```
   
   **Expected behavior**
   No exception
   
   **Screenshots**
   ![image](https://user-images.githubusercontent.com/8806055/106432600-e8a04400-64a9-11eb-8dba-1e6cac4135a9.png)
   
   **Desktop (please complete the following information):**
   None
   
   **Smartphone (please complete the following information):**
   None
   
   **Additional context**
   None
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] wuyunfeng closed issue #5335: [Bug] ScalaValueReader throw TApplicationException: get_next failed: out of sequence response: expected 21 but got 20

Posted by GitBox <gi...@apache.org>.
wuyunfeng closed issue #5335:
URL: https://github.com/apache/incubator-doris/issues/5335


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org