I don't think there's any reason to think there's a plot hole. Both parties had off-screen downtime. We don't know how long they were hanging out at Cloud City before the Imperials arrived to pickup Han and the gang. We also don't know how much time Luke spent training. In my mind, it seemed like he spent a short time training, and was interrupted by his friends being in danger.
1 of 2
user1027