-
Notifications
You must be signed in to change notification settings - Fork 7k
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
drop keeper dir with zero copy locks #57575
Conversation
This is an automated comment for commit 8b2bd21 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
8db49ab
to
d42e2e5
Compare
This is the race from tests. It has nothing with the changes, but still.
|
something strange in ClickHouse Stateless Tests (tsan, S3 Storage). There is
Definetly an error in response is expected.
Turned out this is an known issue. |
test_delayed_replica_failover -- flaky test https://github.com/search?q=repo%3AClickHouse%2FClickHouse+test_delayed_replica_failover&type=issues |
17f6619
to
67e3af9
Compare
Stateless Tests (release, S3 Storage) |
else if (code != Coordination::Error::ZOK) | ||
{ | ||
LOG_ERROR(logger, "Zero copy locks were not completely removed from ZooKeeper, " | ||
"{} still exists and may contain some garbage.", zero_copy_locks_root); | ||
throw zkutil::KeeperException::fromPath(code, zero_copy_locks_root); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be impossible:
ClickHouse/src/Common/ZooKeeper/ZooKeeper.h
Lines 271 to 275 in 546484d
/// Doesn't throw in the following cases: | |
/// * The node doesn't exist | |
/// * Versions don't match | |
/// * The node has children. | |
Coordination::Error tryRemove(const std::string & path, int32_t version = -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it makes sense to write this message if tryRemoveRecursive
returns false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean that the is no other reason for code != Coordination::Error::ZOK
after I handle ZNOTEMPTY
and ZNONODE
in the if-branches before?
Honestly I wrote that branch as a save ending of handling the errors. Just to be sure that all statuses are handled. This is why there is exception is thrown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes (and since you don't pass a version to tryRemove
)
Hi, is there an ETA for this to be merged? |
PullingAsyncPipelineExecutor cleanup
67e3af9
to
54bc462
Compare
54bc462
to
8b2bd21
Compare
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
All zero copy locks related to a table have to be dropped when the table is dropped. The directory which contains these locks has to be removed also.
Closes #58964