pkuwm commented on issue #353: Don't ignore exceptions: adding log messages to 
help check exceptions.
URL: https://github.com/apache/helix/issues/353#issuecomment-513991073
 
 
   I agree with you. Instead of using an exception like way, maybe an if
   condition could solve the problem and avoid exception handling.
   
   On Mon, Jul 22, 2019 at 4:19 PM Hunter Lee <notificati...@github.com> wrote:
   
   > Yes. Like I implied in my previous comment, there are certain fields that
   > only show up in valid WorkflowConfigs. I believe "workflowId" is one.
   >
   > You could accomplish the same thing with an if-else, so a better way to do
   > this is to check for the workflow id field in the ZNRecord.
   >
   > - Hunter
   >
   > On Jul 23, 2019, 01:15, at 01:15, pkuwm <notificati...@github.com> wrote:
   > >Yes, it makes sense not to expose the config details.
   > >
   > >But just curious, regarding this workflowConfig checking, do we have a
   > >better way to validate if all the configs are workflow configs or not?
   > >It is just validated in fromHelixProperty by throwing an
   > >IllegalArgumentException.
   > >
   > >--
   > >You are receiving this because you commented.
   > >Reply to this email directly or view it on GitHub:
   > >https://github.com/apache/helix/issues/353#issuecomment-513989903
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > 
<https://github.com/apache/helix/issues/353?email_source=notifications&email_token=ABHSRCMGD76OZNCIGQBBIK3QAY57PA5CNFSM4IF4HDP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2RN7IQ#issuecomment-513990562>,
   > or mute the thread
   > 
<https://github.com/notifications/unsubscribe-auth/ABHSRCOUXJPJOFFYMQGULBTQAY57PANCNFSM4IF4HDPQ>
   > .
   >
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to