Skip to content

Commit

Permalink
git rid of NPE during store closing
Browse files Browse the repository at this point in the history
  • Loading branch information
popduke committed Sep 14, 2024
1 parent 86cb78f commit 8cb12a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-cov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ private void receive(StoreMessage storeMessage) {
if (payload.hasEnsureRange()) {
EnsureRange request = storeMessage.getPayload().getEnsureRange();
mgmtTaskRunner.add(() -> {
if (status.get() != Status.STARTED) {
return CompletableFuture.completedFuture(null);
}
KVRangeId rangeId = payload.getRangeId();
IKVRangeFSM range = kvRangeMap.get(rangeId);
try {
Expand Down

0 comments on commit 8cb12a9

Please sign in to comment.