My ultimate nightmare; being zipped up in a sleeping bag, in a tent, in the dark, with a predatory bear outside the tent. That's primarily what prompted me to ditch the 44 mag revolver for the Glock 10mm. A powerful light can be attached to the Glock in seconds for the night, and it holds 16 rounds. If I can get my hand on it before the attack, I can shoot the bear from the bag if he collapses the tent, and even without the light. If I can get out of the tent, the light can enable aimed shooting. Sixteen rounds is nearly 3x what. revolver can hold.
Spray is virtually useless under such a scenario.