You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/04/26 12:20:33 UTC

[GitHub] [incubator-linkis] peacewong opened a new issue, #2040: [Bug] [Entrance]HDFSCacheLogWriter getOutPutStream NPE

peacewong opened a new issue, #2040:
URL: https://github.com/apache/incubator-linkis/issues/2040

   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-cg-entrance
   
   ### What happened + What you expected to happen
   
   There is an NPE problem in HDFSCacheLogWriter getOutputStream, and it does not judge whether the fileSystem is Null
   HDFSCacheLogWriter getOutputStream存在NPE问题,没有判断fileSystem是否为Null
   ```
   def getOutputStream: OutputStream = {
       if (null == outputStream) OUT_LOCKER.synchronized {
         if (null == outputStream) {
   
           outputStream = fileSystem.write(new FsPath(logPath), false)
         }
       }
       outputStream
     }
   ```
   You should make a short judgment when writeToFile is called, and give a Warn-level log
   ![Uploading image.png…]()
   
   ### Relevent platform
   
   all
   
   ### Reproduction script
   
   no
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
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.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] [incubator-linkis] peacewong commented on issue #2040: [Bug] [Entrance]HDFSCacheLogWriter getOutPutStream NPE

Posted by GitBox <gi...@apache.org>.
peacewong commented on issue #2040:
URL: https://github.com/apache/incubator-linkis/issues/2040#issuecomment-1166764567

   > I want to fix this issue. Please assign to me.
   
   ok


-- 
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] [incubator-linkis] Dlimeng commented on issue #2040: [Bug] [Entrance]HDFSCacheLogWriter getOutPutStream NPE

Posted by GitBox <gi...@apache.org>.
Dlimeng commented on issue #2040:
URL: https://github.com/apache/incubator-linkis/issues/2040#issuecomment-1164098758

   I want to fix this issue. Please assign to me.


-- 
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] [incubator-linkis] casionone closed issue #2040: [Bug] [Entrance]HDFSCacheLogWriter getOutPutStream NPE

Posted by GitBox <gi...@apache.org>.
casionone closed issue #2040: [Bug] [Entrance]HDFSCacheLogWriter getOutPutStream NPE
URL: https://github.com/apache/incubator-linkis/issues/2040


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