on the bubble

(idiomatic) Uncertain of success.

Example:   Smith was on the bubble but lost out when Jones was faster by a tenth of a second.
  The Knights had been on the bubble for the tournament, but played their way in by winning their last five games.
  The new bond issue now appears to be on the bubble, with support eroding.