Closed khauser closed 1 year ago
Closing it due to the repeat issue https://github.com/Azure/azure-sdk-for-java/issues/31966
@moarychan: I also saw the other issue but the stacktrace is almost completely different. Please reopen
@khauser , thanks for your update, please provide if anything missing. We appreciate your input and will review this matter as soon as possible. We'll keep you updated on the progress of our review.
Hi there,
are there any news to this problem? Our ADO pipelines last 15 min longer due to this issue...
Regards, Karsten
Hi @khauser , could you help provide a minimal application about this problem, thanks.
While making the showcase project I noticed that the problem sits in front of the computer...
By using Springs ApplicationRunner for sending just a message I missed to exit/close the Spring Boot Application.
@ConditionalOnProperty(prefix = "job.autorun", name = "enabled", havingValue = "true", matchIfMissing = true)
@Slf4j
@Component
@Order(1)
class MessengerApplicationRunner implements ApplicationRunner
{
@Autowired
private MessageSender testplanMessageSender;
@Autowired
private ApplicationContext appContext;
@Override
public void run(ApplicationArguments args) throws Exception
{
log.info("ApplicationRunner#run()");
messageSender.sendmMessage("testqueue", "Hello, World");
SpringApplication.exit(appContext, () -> 0);
}
}
With this exit
now the application is closed as expected after message sendage.
Big sorry for the inconvenience!
Describe the bug After I send a message the application stays open apx. 15 min and closes itself with the added exception. The message was send successful early in the beginning of these 15 min.
Exception or Stack Trace
To Reproduce Spring Boot application
Code Snippet
Expected behavior The application shall send the message and close itself smoothly.
Setup (please complete the following information):