# general

Adrian Cole

09/04/2020, 5:41 AM
It seems PinotAdministrator doesn't return exit code 1 on failure.. this makes use in shell scripts difficult
I will double check but for example I found a script that had exit status enforced, but continued anyway
Copy code
pinot                           | 2020/09/04 05:45:11.326 INFO [AddTableCommand] [main] {"code":400,"error":"Invalid table config for table rawServiceView_REALTIME: Failed to find instances with tag: DefaultTenant_BROKER for table: rawServiceView_REALTIME"}
this didn't quit out and I would have expected it to..

Xiang Fu

09/04/2020, 4:49 PM
Can you provide the cmd? We will fix it
Or just file an issue on GitHub and tag as big

Adrian Cole

09/07/2020, 1:08 AM
What I experienced was a glitch in running the same command, but later we switched to just use REST api as it is less resource usage for the same outcome and also HTTP responds naturally