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

Jetty 12.1.x Infinispan flaky tests #12338

Open
wants to merge 8 commits into
base: jetty-12.1.x
Choose a base branch
from

Conversation

olamy
Copy link
Member

@olamy olamy commented Oct 1, 2024

  • use Infinispan image 15.0.9, use UUID for cache name
  • checkstyle
  • use a single instance via singleton holder
  • reduce memory usage of Infinispan

Copy link
Contributor

@janbartel janbartel left a comment

Choose a reason for hiding this comment

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

A couple of questions, then a couple of things to just tidy up.

}

}

public RemoteInfinispanTestSupport(String cacheName)
{
Objects.requireNonNull(cacheName, "cacheName cannot be null");
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the cacheName now no longer used?

private static final GenericContainer<?> infinispan = new GenericContainer<>(IMAGE_NAME);

static
private static final class Holder
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the benefit of doing it this way vs having statics?

Copy link
Member Author

Choose a reason for hiding this comment

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

easier to read :)

@olamy
Copy link
Member Author

olamy commented Oct 2, 2024

@janbartel still a draft and working on it

@olamy olamy added the Build label Oct 4, 2024
@olamy olamy marked this pull request as ready for review October 4, 2024 01:23
Signed-off-by: Olivier Lamy <[email protected]>
Signed-off-by: Olivier Lamy <[email protected]>
Signed-off-by: Olivier Lamy <[email protected]>
Signed-off-by: Olivier Lamy <[email protected]>
Signed-off-by: Olivier Lamy <[email protected]>
@olamy olamy force-pushed the jetty-12.1.x-infinispan-flaky branch from 85ba257 to 489dca0 Compare October 4, 2024 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants