You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by "duhanmin (via GitHub)" <gi...@apache.org> on 2023/03/16 09:48:45 UTC
[GitHub] [linkis] duhanmin opened a new pull request, #4375: [fix bug] The s3a file cannot be written because FileSystem is closed prematurely
duhanmin opened a new pull request, #4375:
URL: https://github.com/apache/linkis/pull/4375
### Linkis Component
linkis-commons
### Steps to reproduce
[The s3a file cannot be written because FileSystem is closed prematurely](https://github.com/apache/linkis/blob/1.3.0/linkis-commons/linkis-storage/src/main/scala/org/apache/linkis/storage/resultset/StorageResultSetWriter.scala)
```scala
Utils.tryFinally(if (outputStream != null) flush()) {
closeFs
if (outputStream != null) {
IOUtils.closeQuietly(outputStream)
outputStream = null
}
}
```
### Expected behavior
Change to
```scala
Utils.tryFinally(if (outputStream != null) flush()) {
if (outputStream != null) {
IOUtils.closeQuietly(outputStream)
outputStream = null
}
closeFs
}
```
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org
[GitHub] [linkis] peacewong merged pull request #4375: [fix bug] The s3a file cannot be written because FileSystem is closed prematurely
Posted by "peacewong (via GitHub)" <gi...@apache.org>.
peacewong merged PR #4375:
URL: https://github.com/apache/linkis/pull/4375
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org