With the indexes hovering near record highs, investors have been fretting over signals that could undercut stocks.