Narrative:

In 30 plus years of flying; this is the closest that I have ever been to another airplane in the air. I was with a student in the pattern at lvk on runway 7 left. We had just taken off. The pattern was busy. Tower told us we were number 3 for the runway. We told tower that we did not see our traffic and ask them to keep us advised. Later during downwind; we told tower again that we did not see our traffic. Tower advised that they were on a 1.5 mile final.we saw the called traffic they were number two we could see the aircraft on short final and turned base to fall in line behind that aircraft.the left pattern was very busy and the controller got distracted by an aircraft who wanted a long landing on 7R. As I was on final; I called the tower and advised that we were on short final on 7L. I got an acknowledgment from the tower. A moment later; another aircraft advised the tower that they had no one in front of them for the runway. At the time; I assumed that he was for runway 25R although an alarm bell was going off as I had not registered him earlier in my own mind.shortly thereafter; the tower told aircraft to go around. Suddenly; and right in front up; up from underneath us came this aircraft. Scared the you know what out of my student who quickly announced to me '[expletive] take the plane'; which I did. I maneuvered to allow the conflict aircraft to continue its climb. I am guessing that we had around 100 ft between us and the other plane.upon landing; I called the tower on the phone and chatted with the controller. His focus; which I found odd; was on the fact that he did not believe that he had made an error and that the controller in charge (controller in charge) had noticed the two planes on 7L and instructed him to issue the go around instruction. I told the controller that I was not interested in 'blame' but just wanted to try and figure out how this happened.the controller told me that the other aircraft had 'cut in front' of me. How that is possible in a class D is a bit surprising. In any event; I believe that there was a controller error here and that he confused the lower airplane and ourselves. I believe when he issued the go around instruction; he thought he was talking to us and it would have made sense as we were the higher and further out aircraft. Instead; he issued the go around instruction to the lower and close in aircraft and we nearly had a very bad situation.what I took away from this is that I need to be even more alert when my internal warning bell goes off. And I should have been on the lookout for controller distraction and I was not. Fortunately; I got lucky but I used up one of my lives today for sure!

Google
 

Original NASA ASRS Text

Title: GA flight instructor reported a NMAC in the pattern at LVK.

Narrative: In 30 plus years of flying; this is the closest that I have ever been to another airplane in the air. I was with a student in the pattern at LVK on Runway 7 left. We had just taken off. The pattern was busy. Tower told us we were number 3 for the runway. We told tower that we did not see our traffic and ask them to keep us advised. Later during downwind; we told tower again that we did not see our traffic. Tower advised that they were on a 1.5 mile final.We saw the called traffic they were number two we could see the aircraft on short final and turned base to fall in line behind that aircraft.The left pattern was very busy and the controller got distracted by an aircraft who wanted a long landing on 7R. As I was on final; I called the tower and advised that we were on short final on 7L. I got an acknowledgment from the tower. A moment later; another aircraft advised the tower that they had no one in front of them for the runway. At the time; I assumed that he was for Runway 25R although an alarm bell was going off as I had not registered him earlier in my own mind.Shortly thereafter; the tower told aircraft to go around. Suddenly; and RIGHT in front up; up from underneath us came this aircraft. Scared the you know what out of my student who quickly announced to me '[Expletive] TAKE THE PLANE'; which I did. I maneuvered to allow the conflict aircraft to continue its climb. I am guessing that we had around 100 ft between us and the other plane.Upon landing; I called the tower on the phone and chatted with the controller. His focus; which I found odd; was on the fact that he did not believe that he had made an error and that the CIC (Controller In Charge) had noticed the two planes on 7L and instructed him to issue the go around instruction. I told the controller that I was not interested in 'blame' but just wanted to try and figure out how this happened.The controller told me that the other aircraft had 'cut in front' of me. How that is possible in a Class D is a bit surprising. In any event; I believe that there was a controller error here and that he confused the lower airplane and ourselves. I believe when he issued the go around instruction; he thought he was talking to us and it would have made sense as we were the higher and further out aircraft. Instead; he issued the go around instruction to the lower and close in aircraft and we nearly had a very bad situation.What I took away from this is that I need to be even more alert when my internal warning bell goes off. And I should have been on the lookout for controller distraction and I was not. Fortunately; I got lucky but I used up one of my lives today for sure!

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.