This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Delay-queue: changes to thrift, metadata, cli, etc #228
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f67ba94
delay: thrift changes
73640ee
Delay-queue: metadata changes
8218460
delay-queue: cli changes
18aae33
delay-queue: frontend changes
d7c5541
delay-queue: outputhost context
276feca
fix alter cql
f80cfd6
update replicator to handle delay field
68488f6
fix tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1027,6 +1027,7 @@ func (s *CassandraSuite) TestMoveExtent() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(60), | ||
DelaySeconds: common.Int32Ptr(60), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
@@ -1671,6 +1672,7 @@ func assertConsumerGroupsEqual(s *CassandraSuite, expected, got *shared.Consumer | |
s.Equal(expected.GetLockTimeoutSeconds(), got.GetLockTimeoutSeconds(), "Wrong LockTimeoutSeconds") | ||
s.Equal(expected.GetMaxDeliveryCount(), got.GetMaxDeliveryCount(), "Wrong MaxDeliveryCount") | ||
s.Equal(expected.GetSkipOlderMessagesSeconds(), got.GetSkipOlderMessagesSeconds(), "Wrong SkipOlderMessagesSeconds") | ||
s.Equal(expected.GetDelaySeconds(), got.GetDelaySeconds(), "Wrong DelaySeconds") | ||
s.Equal(expected.GetOwnerEmail(), got.GetOwnerEmail(), "Wrong OwnerEmail") | ||
s.Equal(expected.GetDeadLetterQueueDestinationUUID(), got.GetDeadLetterQueueDestinationUUID(), "Wrong DeadLetterQueueDestinationUUID") | ||
s.Equal(expected.GetActiveZone(), got.GetActiveZone(), "Wrong ActiveZone") | ||
|
@@ -1693,6 +1695,7 @@ func (s *CassandraSuite) TestDeleteConsumerGroupDeletesDLQ() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(60), | ||
DelaySeconds: common.Int32Ptr(60), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
@@ -1759,6 +1762,7 @@ func (s *CassandraSuite) TestConsumerGroupCRUD() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(60), | ||
DelaySeconds: common.Int32Ptr(60), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
IsMultiZone: common.BoolPtr(true), | ||
ActiveZone: common.StringPtr("zone1"), | ||
|
@@ -1773,6 +1777,7 @@ func (s *CassandraSuite) TestConsumerGroupCRUD() { | |
LockTimeoutSeconds: common.Int32Ptr(createReq.GetLockTimeoutSeconds()), | ||
MaxDeliveryCount: common.Int32Ptr(createReq.GetMaxDeliveryCount()), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(createReq.GetSkipOlderMessagesSeconds()), | ||
DelaySeconds: common.Int32Ptr(createReq.GetDelaySeconds()), | ||
OwnerEmail: common.StringPtr(createReq.GetOwnerEmail()), | ||
IsMultiZone: common.BoolPtr(createReq.GetIsMultiZone()), | ||
ActiveZone: common.StringPtr(createReq.GetActiveZone()), | ||
|
@@ -1833,6 +1838,7 @@ func (s *CassandraSuite) TestConsumerGroupCRUD() { | |
LockTimeoutSeconds: common.Int32Ptr(99), | ||
MaxDeliveryCount: common.Int32Ptr(99), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(100), | ||
DelaySeconds: common.Int32Ptr(100), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
@@ -1846,6 +1852,7 @@ func (s *CassandraSuite) TestConsumerGroupCRUD() { | |
expectedCG.LockTimeoutSeconds = common.Int32Ptr(updateReq.GetLockTimeoutSeconds()) | ||
expectedCG.MaxDeliveryCount = common.Int32Ptr(updateReq.GetMaxDeliveryCount()) | ||
expectedCG.SkipOlderMessagesSeconds = common.Int32Ptr(updateReq.GetSkipOlderMessagesSeconds()) | ||
expectedCG.DelaySeconds = common.Int32Ptr(updateReq.GetDelaySeconds()) | ||
expectedCG.OwnerEmail = common.StringPtr(updateReq.GetOwnerEmail()) | ||
expectedCG.ActiveZone = common.StringPtr(updateReq.GetActiveZone()) | ||
|
||
|
@@ -1914,6 +1921,7 @@ func (s *CassandraSuite) TestCGCRUDOnPhantomDestination() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(6), | ||
DelaySeconds: common.Int32Ptr(6), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
@@ -1929,6 +1937,7 @@ func (s *CassandraSuite) TestCGCRUDOnPhantomDestination() { | |
LockTimeoutSeconds: common.Int32Ptr(99), | ||
MaxDeliveryCount: common.Int32Ptr(99), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(99), | ||
DelaySeconds: common.Int32Ptr(99), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
_, err = s.client.UpdateConsumerGroup(nil, updateReq) | ||
|
@@ -1968,6 +1977,7 @@ func (s *CassandraSuite) TestReCreateConsumerGroup() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(60), | ||
DelaySeconds: common.Int32Ptr(60), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
@@ -2019,6 +2029,7 @@ func (s *CassandraSuite) TestListConsumerGroups() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(60), | ||
DelaySeconds: common.Int32Ptr(60), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
@@ -2099,6 +2110,7 @@ func (s *CassandraSuite) TestListAllConsumerGroups() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(60), | ||
DelaySeconds: common.Int32Ptr(60), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
@@ -2128,6 +2140,7 @@ func (s *CassandraSuite) TestListAllConsumerGroups() { | |
s.Equal(int32(10), gotCG.GetLockTimeoutSeconds()) | ||
s.Equal(int32(5), gotCG.GetMaxDeliveryCount()) | ||
s.Equal(int32(60), gotCG.GetSkipOlderMessagesSeconds()) | ||
s.Equal(int32(60), gotCG.GetDelaySeconds()) | ||
s.Equal(string("[email protected]"), gotCG.GetOwnerEmail()) | ||
delete(groupMap, gotCG.GetConsumerGroupName()) | ||
} | ||
|
@@ -2164,6 +2177,7 @@ func (s *CassandraSuite) TestSameCGNameOnDifferentDestinations() { | |
LockTimeoutSeconds: common.Int32Ptr(10), | ||
MaxDeliveryCount: common.Int32Ptr(5), | ||
SkipOlderMessagesSeconds: common.Int32Ptr(60), | ||
DelaySeconds: common.Int32Ptr(60), | ||
OwnerEmail: common.StringPtr("[email protected]"), | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TYPE consumer_group ADD delay_seconds int; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"CurrVersion": 15, | ||
"MinCompatibleVersion": 8, | ||
"Description": "Add Delay", | ||
"SchemaUpdateCqlFiles": [ | ||
"201706160000_delay.cql" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update metadataReconciler.go compareAndUpdateCg