The S&P 500 and Nasdaq ended the session with losses for the third day in a row, while the Dow Jones Industrial Average reached a record. Amazon.com Inc.'s (AMZN) decision to purchase Whole Foods Market Inc. (WFM) set off declines among retail and grocery stocks earlier in the day. Oil held onto modest gains even after another weekly rise in domestic production. Active rigs drilling for oil climbed by six in the past week, its 22nd increase in a row. Kroger Co. (KR) was caught up in a selloff in retail and supermarket names to end the week. The grocer was already under pressure after JPMorgan cut its rating to NEUTRAL from OVERWEIGHT and reduced its price target. Finisar Corp. (FNSR) surged on high hopes it will deliver tens of millions of 3D sensors to Apple Inc. (AAPL) in coming months. Piper Jaffray said such sales would provide Finisar with millions in high-margin sales in its October and January quarters.

More from Video

The Demise of the Great American Supermarket (Watch!)

The Demise of the Great American Supermarket (Watch!)

China to Slash Automobile Tariffs and 4 Other Stories You Must Know Tuesday

China to Slash Automobile Tariffs and 4 Other Stories You Must Know Tuesday

Listen: Smart Technologies That Could Lure Millennials Back to Motorcycle Riding

Listen: Smart Technologies That Could Lure Millennials Back to Motorcycle Riding

60 Seconds: What is the Volcker Rule and How Does it Affect Your Portfolio?

60 Seconds: What is the Volcker Rule and How Does it Affect Your Portfolio?

Video: Here's How Global Stocks Can Boost Your Portfolio

Video: Here's How Global Stocks Can Boost Your Portfolio