-
Notifications
You must be signed in to change notification settings - Fork 63
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 #95
Comments
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?
|
Hey @jasonmp85, To summarize what I observed:
So, it seems that we cannot solve this problem with playin |
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: