Fix CI
Change-Id: I4b8faf7490ef1cf3d2d095fcff9b970e25c8e500
This commit is contained in:
parent
0004a98248
commit
902103fb29
@ -16,27 +16,28 @@ Delete Message With Claim ID
|
|||||||
|
|
||||||
https://blueprints.launchpad.net/zaqar/+spec/delete-message-with-claim-id
|
https://blueprints.launchpad.net/zaqar/+spec/delete-message-with-claim-id
|
||||||
|
|
||||||
Delete Message with claim id means that when a user deletes a message, the message
|
Delete Message with claim id means that when a user deletes a message, the
|
||||||
must be claimed. If you want to delete a message, you will have to use both message
|
message must be claimed. If you want to delete a message, you will have to use
|
||||||
id and claim id. This can improve the security of the message.
|
both message id and claim id. This can improve the security of the message.
|
||||||
|
|
||||||
Problem description
|
Problem description
|
||||||
===================
|
===================
|
||||||
|
|
||||||
Currently, any client who knows the message ID can delete the message if it not be
|
Currently, any client who knows the message ID can delete the message if it not
|
||||||
claimed. It could cause some unexpected problems. A better way to delete a message
|
be claimed. It could cause some unexpected problems. A better way to delete a
|
||||||
is make sure the message is deleted by the client who is claiming the message.
|
message is make sure the message is deleted by the client who is claiming the
|
||||||
Amazon SQS use receipt handler to delete a message[1]. Zaqar can use claim id and
|
message. Amazon SQS use receipt handler to delete a message[1]. Zaqar can use
|
||||||
message id to delete messages.
|
claim id and message id to delete messages.
|
||||||
|
|
||||||
Proposed change
|
Proposed change
|
||||||
===============
|
===============
|
||||||
|
|
||||||
Add a new configuration item named ``message_delete_with_claim_id``, default value
|
Add a new configuration item named ``message_delete_with_claim_id``, default
|
||||||
is ``False``, means it is backwards compatible. You can modify this configuration
|
value is ``False``, means it is backwards compatible. You can modify this
|
||||||
item to decide whether to turn on the switch. If you change it to ``True``, you
|
configuration item to decide whether to turn on the switch. If you change it to
|
||||||
need to forcibly carry the claim id when delete messages. If the claim ID is invalid,
|
``True``, you need to forcibly carry the claim id when delete messages. If the
|
||||||
the message can not be deleted. You must re-claim the messages, and then delete it.
|
claim ID is invalid, the message can not be deleted. You must re-claim the
|
||||||
|
messages, and then delete it.
|
||||||
|
|
||||||
..note::
|
..note::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user