You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "jingjia88 (via GitHub)" <gi...@apache.org> on 2024/08/21 15:57:08 UTC

[PR] [#4606] Improvement(trino-connector): Possible null pointer expection/code handling [gravitino]

jingjia88 opened a new pull request, #4619:
URL: https://github.com/apache/gravitino/pull/4619

   <!--
   1. Title: [#<issue>] <type>(<scope>): <subject>
      Examples:
        - "[#123] feat(operator): support xxx"
        - "[#233] fix: check null before access result in xxx"
        - "[MINOR] refactor: fix typo in variable name"
        - "[MINOR] docs: fix typo in README"
        - "[#255] test: fix flaky test NameOfTheTest"
      Reference: https://www.conventionalcommits.org/en/v1.0.0/
   2. If the PR is unfinished, please mark this PR as draft.
   -->
   
   ### What changes were proposed in this pull request?
   
   - Remove the outer try block and throw new TrinoException exception by passing failedException.
   - The InterruptedException during Thread.sleep is handled.
   
   ### Why are the changes needed?
   
   Fix: #4606 
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   use original UT
   


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [#4606] Improvement(trino-connector): Possible null pointer expection/code handling [gravitino]

Posted by "jingjia88 (via GitHub)" <gi...@apache.org>.
jingjia88 commented on PR #4619:
URL: https://github.com/apache/gravitino/pull/4619#issuecomment-2305190076

   @justinmclean How about changing the initial `null` to a default exception  ?


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [#4606] Improvement(trino-connector): Possible null pointer expection/code handling [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #4619:
URL: https://github.com/apache/gravitino/pull/4619


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [#4606] Improvement(trino-connector): Possible null pointer expection/code handling [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #4619:
URL: https://github.com/apache/gravitino/pull/4619#issuecomment-2306098365

   @diqiu50 can you please help to review this?


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [#4606] Improvement(trino-connector): Possible null pointer expection/code handling [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on PR #4619:
URL: https://github.com/apache/gravitino/pull/4619#issuecomment-2303792583

   Thanks @jingjia88 for your contribution. I like that you are handling the thread correctly, but I think this could be simplified further. @jerryshao what do you think?


-- 
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: commits-unsubscribe@gravitino.apache.org

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