Describe the bug
沒有正確地處理錯誤的情形
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots







Operation System (please complete the following information):
Additional context
Add any other context about the problem here.
@vitojeng I can confirm this is a bug. And the issue here is that shabondi is trying to connect to a topic which is not yet ready (still starting...) so Configurator will return a failed response and thus the error described in the above.
{
"code": "oharastream.ohara.configurator.route.ObjectCheckException",
"message": "type:topic {\"group\":\"3e1117d3c\",\"name\":\"zx5wd\"} does not exist ",
"stack": "oharastream.ohara.configurator.route.ObjectCheckException: type:topic {\"group\":\"3e1117d3c\",\"name\":\"zx5wd\"} does not exist \n\tat oharastream.ohara.configurator.route.ObjectChecker$$anon$1$$anon$2.compare(ObjectChecker.scala:653)\n\tat oharastream.ohara.configurator.route.ObjectChecker$$anon$1$$anon$2.$anonfun$check$24(ObjectChecker.scala:718)\n\tat scala.concurrent.impl.Promise$Transformation.run(Promise.scala:430)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n"
}
Look at the snapshot, the POST /topics (create topic) seems executes successfully.
This is due to the topic creation and connector update requests sent at the same time; the connector update request may failed if the topic object is not ready yet in configurator.
LGTM, QA passed.