Skip to content
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

Parallelize deletion of zk garbage #7415

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

tkaitchuck
Copy link
Member

Change log description
Attempt at fixing: InProcPravegaClusterTest
https://github.com/pravega/pravega/actions/runs/7933776118/job/21778295050?pr=7396

Purpose of the change

What the code does

tkaitchuck and others added 5 commits February 27, 2024 21:02
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
zclient.delete().idempotent().deletingChildrenIfNeeded().inBackground(new BackgroundCallback() {
@Override
public void processResult(CuratorFramework client, CuratorEvent event) throws Exception {
future.complete(path);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't we handling errors?

Is it possible that the CF is never completed neither successfully nor exceptionally?

public void processResult(CuratorFramework client, CuratorEvent event) throws Exception {
future.complete(path);
}
}).forPath(path);
} catch (Exception e) {
log.warn("Not able to delete path {} . Exception {}", path, e.getMessage());
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about setting a timeout?

@RaulGracia
Copy link
Contributor

@tkaitchuck maybe you have tried this already, but when executed in isolation, the test passes:

./gradlew :standalone:test --tests io.pravega.local.InProcPravegaClusterTest

> Configure project :
Build JVM Version is : 11.0.22 (Ubuntu 11.0.22+7-post-Ubuntu-0ubuntu222.04.1)

> Task :standalone:test

io.pravega.local.InProcPravegaClusterTest > testWriteAndReadEventWithValidClientConfig STARTED

io.pravega.local.InProcPravegaClusterTest > testWriteAndReadEventWithValidClientConfig PASSED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 30s
72 actionable tasks: 2 executed, 70 up-to-date

Probably you know that already, but the fact that this test is being executed in parallel with other "standalone" tests may be a potential source of failure (but I don't have a root cause for this yet).

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.08%. Comparing base (d57670e) to head (39ff249).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7415   +/-   ##
=========================================
  Coverage     86.07%   86.08%           
  Complexity    16476    16476           
=========================================
  Files          1048     1048           
  Lines         61490    61490           
  Branches       6220     6220           
=========================================
+ Hits          52930    52932    +2     
+ Misses         5347     5340    -7     
- Partials       3213     3218    +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tkaitchuck
Copy link
Member Author

@RaulGracia Note the @RunWith(SerializedClassRunner.class) at the top of the file. It shouldn't be run in parallel with any other standalone tests. If it is (say because that test doesn't use the annotation) then that is a bug.

My current theory is that there is test which runs before it causing problems.

tkaitchuck and others added 4 commits March 4, 2024 19:26
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants