In a ravine I was trying to grab a water source from a waterfall that naturally spawned there, and I swam into the water source. I don't know exactly what happened, but I went in and out of sprint underwater, and I right-clicked. The empty bucket I had been holding filled, but the water source had not been removed. There was not an infinite water source, only one water source. Then when I go to place it down, water flashes where I placed it for a fraction of a second and then disappears. My bucket changed from full to empty at the same time also.
Related issues
Comments

Thank you for your report!
We're tracking this issue as MC-12363, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki