I read What is the largest (engineered) physical object dreamed of in science fiction? and it reminded me of an episode in Star Trek where the Enterprise faces a giant wall in space. So big that it would take a very long time to pass it even at Warp speed.
I recall that the wall was solid metal, had many round-shaped hatches that could be opened with a mechanism, but the crew were unable to trigger it. The wall protected a specific part of the galaxy.
Which episode is this?