1. 10 7月, 2020 19 次提交
  2. 25 6月, 2020 3 次提交
  3. 24 6月, 2020 3 次提交
  4. 23 6月, 2020 2 次提交
    • S
      Merge pull request #7390 from oranagra/exec_fails_abort · 6bbbdd26
      Salvatore Sanfilippo 提交于
      EXEC always fails with EXECABORT and multi-state is cleared
      6bbbdd26
    • O
      EXEC always fails with EXECABORT and multi-state is cleared · 65a3307b
      Oran Agra 提交于
      In order to support the use of multi-exec in pipeline, it is important that
      MULTI and EXEC are never rejected and it is easy for the client to know if the
      connection is still in multi state.
      
      It was easy to make sure MULTI and DISCARD never fail (done by previous
      commits) since these only change the client state and don't do any actual
      change in the server, but EXEC is a different story.
      
      Since in the past, it was possible for clients to handle some EXEC errors and
      retry the EXEC, we now can't affort to return any error on EXEC other than
      EXECABORT, which now carries with it the real reason for the abort too.
      
      Other fixes in this commit:
      - Some checks that where performed at the time of queuing need to be re-
        validated when EXEC runs, for instance if the transaction contains writes
        commands, it needs to be aborted. there was one check that was already done
        in execCommand (-READONLY), but other checks where missing: -OOM, -MISCONF,
        -NOREPLICAS, -MASTERDOWN
      - When a command is rejected by processCommand it was rejected with addReply,
        which was not recognized as an error in case the bad command came from the
        master. this will enable to count or MONITOR these errors in the future.
      - make it easier for tests to create additional (non deferred) clients.
      - add tests for the fixes of this commit.
      65a3307b
  5. 22 6月, 2020 5 次提交
  6. 18 6月, 2020 4 次提交
  7. 16 6月, 2020 4 次提交