-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy_to_distributed_table in contrib package fails to mark inactive shards #235
Comments
Comment by onderkalaci Hey @jasonmp85, I examined the bug thoroughly. It seems the problem (or a very close problem) may lead to some other bugs too. First, let me illuminate the problem. Basically, our approach does the following:
Now, how this bug happens as follows:
This problem can also be observed in different forms. Such as the following:
How can we approach to the solution?I tried to find some ways to handle this bug. What do you think about them? Which one should I follow? Or can you suggest any other way?
|
Comment by onderkalaci Hey @jasonmp85, To summarize what I observed:
So, it seems that we cannot solve this problem with playin |
We implemented native COPY support with #33 and #225. Once we release v5.1, we plan to deprecate support for copy_to_distributed_table. @onderkalaci / @metdos, now that we have native COPY support for hash partitioned tables, could we close this issue? |
We added a depreciation note with #478. |
Issue by metdos
Wednesday Mar 25, 2015 at 12:02 GMT
Originally opened as citusdata/pg_shard#95
If I shutdown(ctrl + c) copy_to_distributed_table while it is working, it fails to mark shards on closed node as inactive. If I wait copy_to_distributed_table to complete, then it marks shards inactive on closed node as properly.
Here are steps to replicate problem;
/usr/local/pgsql/bin/copy_to_distributed_table -CH -n NULL customer_reviews_1998.csv customer_reviews
select count(*) from customer_reviews;
select count(*) from customer_reviews;
and see results are different.The text was updated successfully, but these errors were encountered: