YB Version: 2.2.0.0.
We are using a 18 node cluster. NOTE: 6 nodes are blacklisted from the others and have been 'dead' for at least 1 week.
All SQL commands were sent via ./bin/ysql
ysql shell, issued a commandCREATE TABLE table_name (
<schema>
);
ERROR: Already present: [Already present (yb/consensus/retryable_requests.cc:241): Duplicate request]
\dt does not show the new tableCREATE TABLE table_name (
<schema>
);
\dt does not show the new tabletwo tables with the same name.@hudclark : As a workaround, you should be able to issue DROP TABLE table_name and then re-create in the latest version of 2.2. See issue #4710, the fix was issued 2 weeks ago, so ensure that you're on the latest 2.2 release.
@hudclark
In the meantime, can you try ./bin/yb-admin delete_table_by_id <table_id> and try recreating ?
@ddorian / @nspiegelberg Thank you for the suggestions.
Since this is a database used in production, we're finalizing our disaster recovery playbook before running any more schema changes. I'm expecting to try out your suggestions and report back early next week.
@hudclark If by any chance this happens again, or if you still have the setup where it happened initially, it might also help if you could share two types of logs with us, to better understand what might have happened:
yb-tserver/logs/postgres.* on the host you had connected to with your ysqlshyb-master/logs/yb-master.INFO, on the host that was the master leader at that timeIf you're not comfortable sharing those on the issue, also happy to connect on Slack!
Most helpful comment
@ddorian / @nspiegelberg Thank you for the suggestions.
Since this is a database used in production, we're finalizing our disaster recovery playbook before running any more schema changes. I'm expecting to try out your suggestions and report back early next week.