Russia and China 's foreign ministers signed a final agreement on their 2,700-mile border , which had been a point of contention for 40 years , at a meeting in Russia 's Far Eastern city of Vladivostok .