purgedata internally drops the table from hbase, and
then recreates it as an empty table.
Invalid state usually means that the object is still in traf metadata but
the underlying hbase object has been dropped. Or vica versa.

This is an error condition and shouldn't happen under normal conditions.
Difficult to say what would have caused it to reach this state. Probably
some error happened that caused it to not recreate it correctly.

Does this table has indexes on it?
Was there any node/process crash during that purgedata?
hbase logs may also have some info.

You can also try:
cleanup metadata, check, return details;
This will show inconsistent object and may give more info.
(check option will not actually clean it up).

anoop


From: Liu, Yuan (Yuan) [mailto:[email protected]]
Sent: Wednesday, June 14, 2017 9:05 PM
To: [email protected]
Subject: [Question]Object has invalid state?

Hi Trafodioners,

I encountered below error after I executed "purgedata table_name",

[ERROR 4254] Object table_name has invalid state and cannot be accessed. Use 
cleanup command to drop it.

I know I can use "cleanup table table_name" to drop the table, but I want to 
know in which cases does the issue happen? And can I still recover this table 
without cleanup it?

Can anyone please help on the question? Thanks a lot.

Best regards,
Yuan
Email: [email protected]<mailto:[email protected]>
Cellphone: (+86) 13671935540

Reply via email to