Hi,
 You are correct.  If the requests are simultaneous, the error will occur. A
very small delay(see below),  will prevent this.
  This exception is informational in nature, and could safely be ignored.

Try this for the second thread
        while (true) {
*                  Thread.sleep(100);*
                    try (Statement stmt = conn1.createStatement()) {
                        stmt.execute(
                            "CREATE TABLE IF NOT EXISTS city1(ID
INTEGER,NAME VARCHAR ,PRIMARY KEY(ID)) WITH \"template=replicated\";");
                        stmt.execute("DROP TABLE IF EXISTS city1");
                    } catch (SQLException e | InterruptedException e) {

                        e.printStackTrace();
                    }

Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to