Skip to content

Commit

Permalink
[CLIENT-1783] Fix client crashes when tracker is nil during Scan/Queries
Browse files Browse the repository at this point in the history
  • Loading branch information
adumovic authored and khaf committed Jun 30, 2022
1 parent 09c3eb9 commit 0e7ee5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions multi_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ func (cmd *baseMultiCommand) parseRecordResults(ifc command, receiveSize int) (b

// Partition is done, don't go further
if (info3 & _INFO3_PARTITION_DONE) != 0 {
// When nodes are removed, the tracker is getting set to null
if cmd.tracker == nil {
return false, newError(types.PARTITION_UNAVAILABLE)
}

cmd.tracker.partitionDone(cmd.nodePartitions, int(generation))
continue
// return true, nil
Expand Down

0 comments on commit 0e7ee5d

Please sign in to comment.