Menu

#933 Standalone - test from file - exceptions from ServiceWithExplicitMethod.invokeService() are not logged

open
nobody
2021-06-22
2020-05-06
Anonymous
No

Originally created by: raphaelsolarski

Describe the bug
Standalone - test from file - exceptions thrown directly from ServiceWithExplicitMethod.invokeService() are not logged.
This makes error searching very difficult and requires uploading the model with its own catching+logging of exceptions (thrown during Future construction).

To Reproduce

  1. Create model with ServiceWithExplicitMethod which throws RuntimeException in invokeService().

    :::scala
    override def invokeService(params: List[AnyRef])(implicit ec: ExecutionContext, collector: InvocationCollectors.ServiceInvocationCollector, metaData: MetaData): Future[AnyRef] = {
    throw new RuntimeException("Some exception") // this won't be logged at all
    // Future.failed(new RuntimeException("Some exception")) // this would be logged
    }

  2. Create proces source -> service -> sink.

  3. Run test from file.

Environment (please complete the following information):

  • OS: MacOS 10.15.4
  • Nussknacker version: 2020_03_27_09_39-master-b40a2f0b04959c427add4465f58f0ab57c19aabb-SNAPSHOT
  • Java version 1.8
  • Scala version: 2.12.10
  • Nussknacker standalone

Discussion


Log in to post a comment.

MongoDB Logo MongoDB