Does the sentence "Completed in 1277, this wall stretched for 20 kilometers around the border of the bay." answer the question "How long was the Hakata Bay barrier?"
yes