Getting Trafodian internal error from mxosrvr due to Zookeeper

Bug #1274932 reported by Guy Groulx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Invalid
Medium
Tharak Capirala

Bug Description

Running atomic suite.
As part of a purgedata command on a table (not implemented in Trafodion), I created a JRUBY script which does a truncate on the table and recreates it with the same partition layout as before.

However, I have found that if I try to connect to trafodion immediately after running this script, the mxosrvr returns an internal error.

Trafodian Internal error: Zookeeper entry not in connecting state for 21016. Current state is AVAILABLE
Trafodian Internal error: Zookeeper entry not in connecting state for 21016. Current state is AVAILABLE
com.hp.jdbc.HPT4Exception: Trafodian Internal error: Zookeeper entry not in connecting state for 21016. Current state is AVAILABLE
 at com.hp.jdbc.HPT4Messages.throwSQLException(HPT4Messages.java:172)
 at com.hp.jdbc.InterfaceConnection.initDiag(InterfaceConnection.java:587)
 at com.hp.jdbc.InterfaceConnection.secureLogin(InterfaceConnection.java:706)
 at com.hp.jdbc.InterfaceConnection.connect(InterfaceConnection.java:900)
 at com.hp.jdbc.InterfaceConnection.<init>(InterfaceConnection.java:172)
 at com.hp.jdbc.HPT4Connection.makeConnection(HPT4Connection.java:1609)
 at com.hp.jdbc.HPT4Connection.<init>(HPT4Connection.java:1562)
 at com.hp.jdbc.HPT4DataSource.getConnection(HPT4DataSource.java:128)
 at com.hp.jdbc.HPT4DataSource.getConnection(HPT4DataSource.java:172)
 at com.hp.jdbc.HPT4Driver.connect(HPT4Driver.java:182)
 at java.sql.DriverManager.getConnection(DriverManager.java:579)
 at java.sql.DriverManager.getConnection(DriverManager.java:221)
 at Measrtn.MeasrtnInit(Measrtn.java:100)
 at JDBCAtomics.main(JDBCAtomics.java:2630)

WORKAROUND: I've added a sleep 5 seconds after running the utility. Seems that Zookeeper is then available.

Suggest that this error be retried at least once in our code.

Guy Groulx (guy-groulx)
tags: added: mxosrvr
tags: added: dcs
tags: added: connection
Changed in trafodion:
milestone: none → r0.6
tags: added: connectivity-dcs
removed: connection dcs mxosrvr
Changed in trafodion:
assignee: nobody → Tharak Capirala (capirala-tharaknath)
status: New → In Progress
information type: Proprietary → Public
Revision history for this message
Guy Groulx (guy-groulx) wrote :

Verified with git150112. This issue is not visible anymore. Closing.

Changed in trafodion:
status: In Progress → Invalid
Revision history for this message
Guy Groulx (guy-groulx) wrote :

May have been caused by #zookeeper connections.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.