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

Use redis cluter #72

Merged
merged 21 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6123e42
Change docker-compose.yml to redis cluster
himadieievsv Feb 14, 2024
8168286
Adjust port mapping
himadieievsv Feb 14, 2024
ee3747e
Git hub action update
himadieievsv Feb 14, 2024
ff4513d
Jedis integration tests are using redis cluster
himadieievsv Feb 14, 2024
cbe7507
Update connection string on lettuce
himadieievsv Feb 15, 2024
d2288e4
Refactor Lettuce pooled abstraction to support cluster commands
himadieievsv Feb 15, 2024
a1c9b3e
Refactor Lettuce pooled abstraction to support cluster commands - ref…
himadieievsv Feb 15, 2024
5c0dd4f
Switch to LettuceUnified
himadieievsv Feb 15, 2024
02edbbb
Switch to LettuceUnified and LettuceClusterPooled
himadieievsv Feb 15, 2024
89188af
Switch tests to LettuceUnified
himadieievsv Feb 15, 2024
a76f9f0
Update Lettuce tests
himadieievsv Feb 15, 2024
1e5915b
Update ports for integration-tests.yml
himadieievsv Feb 15, 2024
7d00d9d
Update cli command for integration-tests.yml
himadieievsv Feb 15, 2024
87534b0
Bump to 1.3.0
himadieievsv Feb 15, 2024
69d51c0
Factory interface uses LettuceUnified
himadieievsv Feb 16, 2024
3a1884a
Factory interface uses LettuceUnified - remove imports
himadieievsv Feb 16, 2024
c760c10
Update tests to accommodate possible delays
himadieievsv Oct 1, 2024
42226bf
bump to 1.3.1
himadieievsv Oct 1, 2024
d177c90
Merge branch 'main' into use-redis-cluter
himadieievsv Oct 1, 2024
c014efe
increase timeout wanting for test containers
himadieievsv Oct 1, 2024
d9f8826
proper command health check command
himadieievsv Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
env:
INITIAL_PORT: 7010
options: >-
--health-cmd "/redis-build/bin/redis-cli -p 7010 ping"
--health-cmd "redis-cli -p 7010 ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
Expand All @@ -31,7 +31,7 @@ jobs:
env:
INITIAL_PORT: 7020
options: >-
--health-cmd "/redis-build/bin/redis-cli -p 7020 ping"
--health-cmd "redis-cli -p 7020 ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
Expand All @@ -42,7 +42,7 @@ jobs:
env:
INITIAL_PORT: 7030
options: >-
--health-cmd "/redis-build/bin/redis-cli -p 7030 ping"
--health-cmd "redis-cli -p 7030 ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {

allprojects {
group = "com.himadieiev"
version = "1.3.0"
version = "1.3.1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class SemaphoreIntegrationTest {

(1..maxLeases)
.forEach {
assertTrue(semaphores[it - 1].lock("test", Duration.ofSeconds(1)))
assertTrue(semaphores[it - 1].lock("test", Duration.ofSeconds(2)))
}
val semaphores2 = mutableListOf<Semaphore>()
(1..maxLeases)
Expand All @@ -147,7 +147,7 @@ class SemaphoreIntegrationTest {
}

runBlocking {
delay(2000)
delay(3000)
}
(1..maxLeases)
.forEach {
Expand Down
Loading