How about outputting warning like and keep retrying in a background thread?
warning - "Failed to bind ODBC processor TCP server to port (retrying every 2 sec) [port=ABC] --Yakov 2016-02-20 17:38 GMT+03:00 Igor Sapego <isap...@gridgain.com>: > Igniters, > > I'm currently working on the ODBC driver. It connects by TCP to the > OdbcProcessor > on the node side. OdbcProcessor is enabled by default and it starts TCP > server on the > specific TCP port or throws exception if the port is busy. > > The problem is that such behavior breaks tests that start more than one > node on the > same machine as the second node fails to start because ODBC port is already > taken > by the first node. > > Does anyone has ideas what is the best way to fix that? > > Best Regards, > Igor >