Skip to content

Commit a27551c

Browse files
author
Tim Middleton
committed
More grpc v1 fixes
1 parent 678723c commit a27551c

File tree

11 files changed

+18
-10
lines changed

11 files changed

+18
-10
lines changed

.github/workflows/build-compatability.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
coherenceVersion:
26-
- 24.03.1
27-
- 24.03.2-SNAPSHOT
26+
- 24.09
2827
go-version:
2928
- 1.19.x
3029
- 1.20.x

.github/workflows/build-queues.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
coherenceVersion:
26-
- 24.03.1
27-
- 24.03.2-SNAPSHOT
26+
- 24.09
27+
- 24.09.1-SNAPSHOT
2828
go-version:
2929
- 1.19.x
3030
- 1.20.x

.github/workflows/discovery-compatability-tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
coherenceVersion:
2323
- 22.06.9
2424
- 22.06.10-SNAPSHOT
25-
- 24.03.1
2625
- 24.09
2726
- 24.09.1-SNAPSHOT
2827
go-version:

.github/workflows/examples-jakarta.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
coherenceVersion:
2323
- 24.09
2424
- 24.09.1-SNAPSHOT
25-
- 24.03.1
2625
go-version:
2726
- 1.19.x
2827
- 1.20.x

.github/workflows/resolver-clusters-compatability-tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
matrix:
2222
coherenceVersion:
2323
- 22.06.9
24-
- 24.03.1
2524
- 24.09
2625
go-version:
2726
- 1.19.x

.github/workflows/resolver-compatability-tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
matrix:
2222
coherenceVersion:
2323
- 22.06.9
24-
- 24.03.1
2524
- 24.09
2625
go-version:
2726
- 1.19.x

coherence/cache.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ type StreamedValue[V any] struct {
238238
Err error
239239
// Value contains the value of the entry.
240240
Value V
241+
// indicates if the value is empty
242+
IsValueEmpty bool
241243
}
242244

243245
// StreamedEntry is wrapper object that wraps an error and a Key and a Value .

coherence/common.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,11 @@ func getStreamedValuesWithEntry[K comparable, V any, R any](bc *baseClient[K, V]
873873
return
874874
}
875875

876-
chResponse <- &StreamedValue[R]{Value: *value}
876+
if value == nil {
877+
chResponse <- &StreamedValue[R]{IsValueEmpty: true}
878+
} else {
879+
chResponse <- &StreamedValue[R]{Value: *value}
880+
}
877881
}
878882
}
879883

@@ -1059,6 +1063,9 @@ func executeInvoke[K comparable, V any, R any](ctx context.Context, bc *baseClie
10591063
if v.Err != nil {
10601064
return zeroValue, v.Err
10611065
}
1066+
if v.IsValueEmpty {
1067+
return nil, nil
1068+
}
10621069
return &v.Value, nil
10631070
}
10641071

test/e2e/standalone/filter_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ func TestFiltersAgainstMapAndCache(t *testing.T) {
207207
func TestPresentFilter(t *testing.T) {
208208
g := gomega.NewWithT(t)
209209

210+
t.Setenv("COHERENCE_SESSION_DEBUG", "true")
211+
t.Setenv("COHERENCE_GRPCV1_DEBUG", "true")
212+
210213
session, err := utils.GetSession()
211214
g.Expect(err).ShouldNot(gomega.HaveOccurred())
212215
defer session.Close()

test/e2e/standalone/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ import (
1313

1414
// The entry point for the test suite
1515
func TestMain(m *testing.M) {
16-
utils.RunTest(m, 1408, 30000, 8080, true)
16+
utils.RunTest(m, 1408, 30000, 8080, false)
1717
}

0 commit comments

Comments
 (0)