Denis

I can't agree with you.

Apache Ignite is the compute platform. It means that an exception on a
server node looks like an alarm that something went wrong or even broken.
I think if we can catch the mistake from user request and return the
correct response (e.g. with error code) is good enough and does not require
throw the exception on nodes.
>From the that standpoint the WARNING or even DEBUG is most suitable level
to report such issues. Same approach may be used more widely for instance
for wrong sql syntax.





On Fri, Dec 14, 2018 at 9:35 PM Denis Magda <dma...@apache.org> wrote:

> Hello Ilya,
>
> It's fine to use ERROR level if an operation can't be completed due to
> missing parameters. That's, in fact, an exception/error. What needs to be
> changed is texts of messages so that everyone understands what exactly
> happened and how to address a failure.
>
> --
> Denis
>
>
> On Fri, Dec 14, 2018 at 5:45 AM Ilya Kasnacheev <ilya.kasnach...@gmail.com
> >
> wrote:
>
> > Hello!
> >
> > It seems that we have subj behavior since the earliest days if Apache
> > Ignite.
> >
> > If you send a REST command with error in it (such as missing "keys" for
> > getAll), you will get a nice
> > [2018-10-30 22:22:14,021][ERROR][rest-#61061][GridCacheCommandHandler]
> > Failed to execute cache command: GridRestCacheRequest
> > error in your logs.
> >
> > Which is probably an overkill since ERROR usually means unexpected and
> > severe errors in application code as opposed to user input validation
> > errors.
> >
> > This made worse by the fact that you can have some automatic REST client
> do
> > a lot of incorrect requests, spam your logs with thousands of such
> ERRORs.
> > The error is returned to client but it is also tee'd to log.
> >
> > What we could do:
> > - Move log level from ERROR to WARN or even INFO.
> > - Handle REST user input validation errors differently from Ignite
> internal
> > errors by introducing new exception class, logging it as INFO or maybe
> just
> > returning to user.
> > - Third funny option?
> >
> > WDYT?
> >
> > Regards,
> > --
> > Ilya Kasnacheev
> >
>


-- 
Sergey Kozlov
GridGain Systems
www.gridgain.com

Reply via email to