nussknacker
nussknacker copied to clipboard
Standalone - test from file - exceptions from ServiceWithExplicitMethod.invokeService() are not logged
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
- Create model with ServiceWithExplicitMethod which throws RuntimeException in invokeService().
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
}
- Create proces source -> service -> sink.
- 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