This type of behavior is unfortunately a part of medicine... not a good one but its there. It is incredibly difficult for people to spontaneously learn that IF there is an issue that needs to be discussed, it should be discussed in private. (ie: praise in public, scold in private).
It is a shame that there is often no recourse when this is done. I have, on occasion, interfered when a consulting attending was trying to humiliate my jr resident, and I have pulled seniors aside when I have seen this happen. (fortunately, not often).
You will have to learn a little bit to not let this bother you. More importantly, hopefully you will learn from it and will not behave in a similar fashion when you are in a senior position.
IF you have an evaluation process for the rotation, you can mention it. (as the ACGME moves towards mandatory 360 evaluations, some places now have jr's and medical students evaluating seniors)
And it shouldn't be! Medicine or any other job. Other jobs have strong protections against that sort of behavior. A good employee can quit and get another job, usually paying more money, there are HR departments and labor laws to fall back on, etc. None of thes protections exist in medicine.
Donkeys exist in medicine. I came to the realization my second month in residency doing a TY that there is a junior high school mentality in residency, and along with that mentality, comes a few school yard bullies. The kind that get their kicks out of beating up on defenseless younger/smaller students, and that most of the rest of us avoided. Unfortunately in residency situations you can't avoid them, and you get your nose bloodied from time to time. It's not pleasant, it is not educational and builds resentment and the cycle of violence (verbal/mental) repeats.
I had a golden weekend, one of one that I had in that program in 12 months. I went to a friend's house some distance away, on the beach. When it looked like I was going to be delayed returning for weather, I had my buddy call the hospital and let them know the situation. It turns out that I was not only on time, but early getting in. Later, in front of a dozen people this donkey screamed at me for being late, not caring about my job, inconveniencing the world and pronounced me unfit for residency and medicine, using four letter words known only to drunken sailors on shore leave. None of this was true, and I had watched this jack-donkey do the same to a number of others, including reducing one resident to tears in a patient's room.
If you write someone like this up on a 360 evaluation, at least in that program, your evaluation will be a mirror image of it, and you can be screwed as well. It happened to me. Unfortunately, once severely burned you remember and all my subsequent 360 evaluations were precisely neutral. Not how it is, but there's little you can do. Until you are in charge.
Just remember that being anass is easy for insecure people given more responsibility than they are capable of handling. Try to remember when you get there this situation and try very hard not to pass on the abuse. All of medicine will be better for it.