Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-25488

Items can be deleted/duplicated on a server crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.6.2
    • None
    • Operating system: Linux 3.10 x86_64
      Java: OpenJDK 1.7.0_25
    • Unconfirmed
    • Survival

      The server doesn't sync transactions between players and chests. This way it is possible that items can get deleted or even duplicated. Steps to reproduce:

      1. Start a default server.
      2. Join with the client and get some wood to create a working bench/chest.
      3. Place the chest somewhere and get some material (for example your remaining wood (if any) or dirt) and put it in the chest.
      4. If there are now the items in the chest and your inventory is empty leave the server and then shutdown it to go sure all changes are successfully saved.
      5. Restart the server and join with the client.
      6. Put all items from the chest into your inventory.
      7. Leave the server.
      8. Immediately crash the server (for example with sending a SIGKILL signal on Linux or whatever your operating system provides).
      9. Restart the server and join with the client.
      10. On checking the chest and your inventory you will notice that the items got duplicated.

      Additional information: This is a simple transaction-unsafe problem. Ideally it must be ensured that every change on a storage (inventory, chest, world, etc.) which also changes another storage is saved in a transaction-safe way (committing).

            Unassigned Unassigned
            jirauser45280 user-ed7ab (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: