2011 Commits

Author SHA1 Message Date
ChangBo Guo(gcb)
0b075aa40a Remove useless logging import statements
TrivialFix

Change-Id: I0bcefbe144903b45d71e053162066d6d4bc91936
2016-11-08 10:11:13 +08:00
Jenkins
9dcd9b78be Merge "[zmq] Cleanup changes to zmq-specific f-tests" 2016-11-07 19:42:49 +00:00
Jenkins
2fc381816b Merge "[zmq] Refactor receivers" 2016-11-07 19:42:45 +00:00
Gevorg Davoian
b1081f9e81 [zmq] Refactor receivers
Change-Id: I19e1dd05fee4323b14bbe377e5e36a37d0f815ac
2016-11-07 13:51:43 +00:00
Gevorg Davoian
ac58423860 [zmq] Cleanup changes to zmq-specific f-tests
Change-Id: Icce92106a0a0a07a4f2d19fe8bcd7c2a6fa530c8
2016-11-07 13:51:37 +00:00
OpenStack Proposal Bot
c961ba9295 Updated from global requirements
Change-Id: I195d860b550aeff473c1779fb83ed0cfc650cdf6
2016-11-06 02:05:50 +00:00
Jenkins
dd99f7b1e6 Merge "Remove the temporary hack in code" 2016-11-04 22:20:10 +00:00
Gevorg Davoian
cf0c18a214 Remove nonexistent functions from documentation
This patch cleans up the documentation by removing some functions
which don't exist anymore and cause sphinx warnings. The patch also
adds pika_driver to index.rst.

Change-Id: I23908089ef6ad1f05c78521c2eea3a0a3276eb2a
Closes-Bug: #1639171
2016-11-04 14:54:37 +02:00
Jenkins
cf5e3685f1 Merge "Replace retrying with tenacity" 2016-11-03 18:05:42 +00:00
Jenkins
bb740f5a58 Merge "[simulator] Fix transport_url usage" 2016-11-03 16:59:29 +00:00
Gevorg Davoian
90125aa885 Replace retrying with tenacity
This patch replaces the legacy retrying library with the newer
and more convenient tenacity one, taking into account that:
1) retrying uses milliseconds for wait times, but tenacity uses seconds;
2) retrying has a lot of numeric arguments for specifying behaviour
of decorated functions, while tenacity has a few of them, which are
specialized objects, thus making the retry-decorator more flexible.

Change-Id: Ib6ecffe5d1cf292badbb9eb6db6260f17460f343
Closes-Bug: #1635399
2016-11-03 12:36:57 +00:00
OpenStack Proposal Bot
b1b3677a75 Updated from global requirements
Change-Id: I1358feb2f87821e8a18ac8b77461df57fa2a6168
2016-11-02 22:00:00 +00:00
OpenStack Proposal Bot
3efbdc703e Updated from global requirements
Change-Id: I8dced43299478078afb75c71b187b7f0607276ad
2016-10-27 12:21:15 +00:00
zhangshengping2012
e40f6398f9 Remove the temporary hack in code
remove the temporary hack in code amqpdriver.py

Change-Id: I7ba9666fc15a6fc4ab27b04362e94661c00547c5
2016-10-26 12:19:51 +08:00
Jenkins
7b5bec3133 Merge "[zmq] Don't fallback to topic if wrong server specified" 2016-10-21 14:15:45 +00:00
Jenkins
c50f1b6440 Merge "Change assertTrue(isinstance()) by optimal assert" 2016-10-21 14:15:40 +00:00
Jenkins
42ece46a72 Merge "Update .coveragerc after the removal of respective directory" 2016-10-21 08:39:44 +00:00
Jenkins
d7e5ffc04b Merge "Using assertIsNone() instead of assertEqual(None)" 2016-10-21 04:03:59 +00:00
Jenkins
379fd82e55 Merge "[TrivialFix] Fix typo in oslo.messaging" 2016-10-20 19:34:47 +00:00
melissaml
e5aceb351c Using assertIsNone() instead of assertEqual(None)
Following OpenStack Style Guidelines[1]:
http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises
[H203] Unit test assertions tend to give better messages for more specific assertions.
As a result, assertIsNone(...) is preferred over assertEqual(None, ...)

Change-Id: I192e339fadc6b738714697d1ae8673ebfb7abd79
2016-10-20 23:48:36 +08:00
melissaml
b28b2875c9 Change assertTrue(isinstance()) by optimal assert
Some of tests use different method of
assertTrue(isinstance(A, B)) or assertEqual(type(A), B).
The correct way is to use assertIsInstance(A, B) provided
by testtools

Change-Id: I0d2ec8ff3be41afb871ebd2aa71a8dfd13e2076d
2016-10-20 23:18:28 +08:00
ozamiatin
c9732d5d3b [zmq] Don't fallback to topic if wrong server specified
When target is specified with server name the correct
result is empty if there is no records with this precise
name registered.

Change-Id: Ibaa7c23c633ccc5f2ca428deb022c9fc1d00e8e7
2016-10-20 11:52:00 +03:00
howardlee
56c48c65a5 [TrivialFix] Replace old style assertions with new style assertions
Replace 'assertEqual(None, ...)' with 'assertIsNone(...)'.
Replace 'assertTrue(a in b)' with ''assertIn(a, b).
Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'.

Change-Id: Ia13cb8465ec86c07867ef977f8ab0d0fdbabb1d4
2016-10-20 03:22:47 +00:00
howardlee
7f2341b3cf [TrivialFix] Fix typo in oslo.messaging
replace 'MessageDispostionTask' with 'MessageDispositionTask'

Change-Id: I3278cc70e2f7a08611a0596adbfca5106d2197c0
2016-10-20 09:02:13 +08:00
Jenkins
267ac50fd6 Merge "[simulator] Fix a message length generator usage" 2016-10-19 19:30:41 +00:00
Jenkins
b453b0a4a9 Merge "[sentinels] Fix hosts extracting and slaves usage" 2016-10-19 17:03:08 +00:00
Jenkins
2cc646bb48 Merge "[zmq] SUB-PUB local proxy" 2016-10-19 15:36:19 +00:00
Kirill Bespalov
401102daab [simulator] Fix transport_url usage
1) Remove hardcoding 'redis' matchmaker from any zmq:// transport because it's
   fails in cases zmq+etcd:// or zmq+sentinel:// urls.
2) Allow to use transport_url from config file by removing default value for
   args.url option. In this case by default args.url is None and
   transport_url will be used from config file.

Change-Id: I1edcabe46b1e92dd4e6eccc9151b50d03f394186
2016-10-19 14:13:29 +03:00
Kirill Bespalov
6eb57b4d5f [simulator] Fix a message length generator usage
Do initialization of the generator only for rpc/notify clients.
No needs to load messages_length.yaml and calculate distribution for servers.

Change-Id: Ib1ac30181bec20eacf6d29ccd5f76c0b6b1e96f8
2016-10-18 14:51:19 +03:00
Iswarya_Vakati
998135b21b Update .coveragerc after the removal of respective directory
Change-Id: Ib352d4db02f5b7c02cab84330b04f1f3bb0253fa
2016-10-18 17:20:09 +05:30
Kirill Bespalov
d054c31fae [sentinels] Fix hosts extracting and slaves usage
1) Provide master_group_name as virtual_host in url:
   zmq+sentinel://:password@sentinel-a,:password@sentinel-b/master_group_name
2) Use slaves for the read operations like SMEMBERS.

Change-Id: I690ecae4a260feef5425eac1f3f5b0e5cf4bb2d7
2016-10-18 13:58:01 +03:00
ozamiatin
1121a6bb60 [zmq] SUB-PUB local proxy
Central + local proxies combination optimizes following:

* Makes it possible to shorten the number of TCP connections
to a single subscription from node.

* PUB/SUB limitation of 10k consumers can be bumped up to 10k nodes
not only to 10k services

* Fanout happens in 2 steps therefore central proxy takes less load
and blocks for a shorter period of time since it needs to fanout
to less consumers (local proxies) not directly to every single service.

Change-Id: I57d87bc8310354142ab69a9f2d3e0a0cf5b972b8
2016-10-17 16:38:52 +03:00
Jenkins
874a69b0cd Merge "[simulator] Automatic stopping of rpc-servers" 2016-10-17 12:01:07 +00:00
Hu Yupeng
4ba1b594d5 Fix typos in addressing.py and setup.cfg
TrivialFix

Change-Id: I403ede0d11357c76da2432fd14a6b843969c1c17
2016-10-17 15:56:06 +08:00
Jenkins
7e0d8a035f Merge "Record length of queues for ReplyWaiters" 2016-10-14 18:37:21 +00:00
OpenStack Proposal Bot
96b9618228 Updated from global requirements
Change-Id: Ib121090566ec7765b52f22227e1ccfe2fe413aff
2016-10-14 05:30:16 +00:00
ChangBo Guo(gcb)
86e779b11b Record length of queues for ReplyWaiters
Add the length of queues in warning message when it exceeds
threshold.

Change-Id: I6236720ede71fadac0c61baf792c15c69de3094b
2016-10-14 10:12:26 +08:00
Jenkins
211c2c1418 Merge "Enable release notes translation" 2016-10-13 20:04:18 +00:00
Jenkins
293084f9b5 Merge "[AMQP 1.0] Avoid unnecessary thread switch on ack" 2016-10-13 10:32:07 +00:00
Mehdi Abaakouk
c881baed29 rabbit: Don't prefetch when batch_size is set
When the application set batch_size, so we don't need to prefetch more
messages, especially for notifications. Notifications queues can be
really big when the consumer have disapear during a long period, and
when it come back, kombu/pyamqp will fetch all messages it can. So we
override the qos prefetch value.

Change-Id: I601e10cf94310b9f96f7acb9942959aaafad7994
Closes-bug: #1551667
2016-10-11 18:12:35 +02:00
Jenkins
7ab113231b Merge "[zmq] Fix issues with broken messages on proxies" 2016-10-11 14:55:19 +00:00
Kenneth Giusti
bc46e64711 [AMQP 1.0] Avoid unnecessary thread switch on ack
Avoid blocking the RPC Server thread when it attempts to acknowledge
the RPC request message.  Blocking is unnecessary as the acknowledge
command does not return a status and can be processed asynchronously
from the server thread.

Avoiding this context switch improves overall RPC call throughput
according to the simulator tool by approximately ten percent on my
test systems.

Change-Id: I71548eb6f9f7dcaf74cb426d4e9b369b54856419
2016-10-11 10:11:35 -04:00
Jenkins
368e3cfb47 Merge "cast() and RPC replies should not block waiting for endpoint to ack" 2016-10-11 10:49:34 +00:00
Gevorg Davoian
c0e941f649 [zmq] Fix issues with broken messages on proxies
Change-Id: Ie120500d21b336a03a06db054dd50eabed947992
Closes-Bug: #1632061
2016-10-10 22:20:26 +03:00
Jenkins
9a5ce19075 Merge "Removed redundant 'the'" 2016-10-10 16:44:09 +00:00
Jenkins
7ad9718395 Merge "Fix a typo in server.py" 2016-10-10 16:39:36 +00:00
Jenkins
3e993aef01 Merge "[zmq] Maintain several redis hosts" 2016-10-10 16:39:21 +00:00
Gevorg Davoian
cb3af2167f [zmq] Maintain several redis hosts
This patch makes it possible to maintain several redis hosts at
once in order to increase driver's reliability and fault tolerance.

Change-Id: Id6f63a4bb67a39340a74d16144c79028c7af245d
2016-10-10 15:13:15 +03:00
Jenkins
06414b1de7 Merge "Properly deserializes built-in exceptions" 2016-10-08 12:28:41 +00:00
melissaml
fa43769080 Removed redundant 'the'
Removed redundant 'the'

Change-Id: Iba66e79c38ebc79c2f916f0704b00927849061c3
2016-10-08 13:17:18 +08:00