mirror of https://github.com/apache/kafka.git
				
				
				
			kafka-883; System Test - update migration tool testsuite after 0.7 ProducerPerformance sends seq MessageID; patched by John Fung; reviewed by Jun Rao
This commit is contained in:
		
							parent
							
								
									f596ab5778
								
							
						
					
					
						commit
						ce7d588055
					
				
										
											Binary file not shown.
										
									
								
							|  | @ -61,3 +61,6 @@ serializer.class=kafka.serializer.DefaultEncoder | ||||||
| 
 | 
 | ||||||
| # the number of messages batched at the producer  | # the number of messages batched at the producer  | ||||||
| #batch.num.messages= | #batch.num.messages= | ||||||
|  | 
 | ||||||
|  | message.send.max.retries=3 | ||||||
|  | request.required.acks=1 | ||||||
|  |  | ||||||
|  | @ -76,6 +76,8 @@ class MigrationToolTest(ReplicationUtils, SetupUtils): | ||||||
|             self.testSuiteAbsPathName, SystemTestEnv.SYSTEM_TEST_CASE_PREFIX) |             self.testSuiteAbsPathName, SystemTestEnv.SYSTEM_TEST_CASE_PREFIX) | ||||||
|         testCasePathNameList.sort() |         testCasePathNameList.sort() | ||||||
| 
 | 
 | ||||||
|  |         replicationUtils = ReplicationUtils(self) | ||||||
|  | 
 | ||||||
|         # ============================================================= |         # ============================================================= | ||||||
|         # launch each testcase one by one: testcase_1, testcase_2, ... |         # launch each testcase one by one: testcase_1, testcase_2, ... | ||||||
|         # ============================================================= |         # ============================================================= | ||||||
|  | @ -284,7 +286,7 @@ class MigrationToolTest(ReplicationUtils, SetupUtils): | ||||||
|                 # validate the data matched and checksum |                 # validate the data matched and checksum | ||||||
|                 # ============================================= |                 # ============================================= | ||||||
|                 self.log_message("validating data matched") |                 self.log_message("validating data matched") | ||||||
|                 kafka_system_test_utils.validate_07_08_migrated_data_matched(self.systemTestEnv, self.testcaseEnv) |                 kafka_system_test_utils.validate_data_matched(self.systemTestEnv, self.testcaseEnv, replicationUtils) | ||||||
|                 kafka_system_test_utils.validate_broker_log_segment_checksum(self.systemTestEnv, self.testcaseEnv) |                 kafka_system_test_utils.validate_broker_log_segment_checksum(self.systemTestEnv, self.testcaseEnv) | ||||||
| 
 | 
 | ||||||
|                 # ============================================= |                 # ============================================= | ||||||
|  |  | ||||||
|  | @ -100,7 +100,6 @@ | ||||||
|       "group.id": "mytestgroup", |       "group.id": "mytestgroup", | ||||||
|       "consumer-timeout-ms": "10000", |       "consumer-timeout-ms": "10000", | ||||||
|       "log_filename": "console_consumer_8.log", |       "log_filename": "console_consumer_8.log", | ||||||
|       "formatter": "kafka.consumer.ChecksumMessageFormatter", |  | ||||||
|       "config_filename": "console_consumer_8.properties" |       "config_filename": "console_consumer_8.properties" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  |  | ||||||
|  | @ -101,7 +101,6 @@ | ||||||
|       "group.id": "mytestgroup", |       "group.id": "mytestgroup", | ||||||
|       "consumer-timeout-ms": "10000", |       "consumer-timeout-ms": "10000", | ||||||
|       "log_filename": "console_consumer_8.log", |       "log_filename": "console_consumer_8.log", | ||||||
|       "formatter": "kafka.consumer.ChecksumMessageFormatter", |  | ||||||
|       "config_filename": "console_consumer_8.properties" |       "config_filename": "console_consumer_8.properties" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  |  | ||||||
|  | @ -101,7 +101,6 @@ | ||||||
|       "group.id": "mytestgroup", |       "group.id": "mytestgroup", | ||||||
|       "consumer-timeout-ms": "10000", |       "consumer-timeout-ms": "10000", | ||||||
|       "log_filename": "console_consumer_8.log", |       "log_filename": "console_consumer_8.log", | ||||||
|       "formatter": "kafka.consumer.ChecksumMessageFormatter", |  | ||||||
|       "config_filename": "console_consumer_8.properties" |       "config_filename": "console_consumer_8.properties" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  |  | ||||||
|  | @ -128,7 +128,6 @@ | ||||||
|       "group.id": "mytestgroup", |       "group.id": "mytestgroup", | ||||||
|       "consumer-timeout-ms": "10000", |       "consumer-timeout-ms": "10000", | ||||||
|       "log_filename": "console_consumer_10.log", |       "log_filename": "console_consumer_10.log", | ||||||
|       "formatter": "kafka.consumer.ChecksumMessageFormatter", |  | ||||||
|       "config_filename": "console_consumer_10.properties" |       "config_filename": "console_consumer_10.properties" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  | @ -137,7 +136,6 @@ | ||||||
|       "group.id": "mytestgroup", |       "group.id": "mytestgroup", | ||||||
|       "consumer-timeout-ms": "10000", |       "consumer-timeout-ms": "10000", | ||||||
|       "log_filename": "console_consumer_11.log", |       "log_filename": "console_consumer_11.log", | ||||||
|       "formatter": "kafka.consumer.ChecksumMessageFormatter", |  | ||||||
|       "config_filename": "console_consumer_11.properties" |       "config_filename": "console_consumer_11.properties" | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -128,7 +128,6 @@ | ||||||
|       "group.id": "mytestgroup", |       "group.id": "mytestgroup", | ||||||
|       "consumer-timeout-ms": "10000", |       "consumer-timeout-ms": "10000", | ||||||
|       "log_filename": "console_consumer_10.log", |       "log_filename": "console_consumer_10.log", | ||||||
|       "formatter": "kafka.consumer.ChecksumMessageFormatter", |  | ||||||
|       "config_filename": "console_consumer_10.properties" |       "config_filename": "console_consumer_10.properties" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  | @ -137,7 +136,6 @@ | ||||||
|       "group.id": "mytestgroup", |       "group.id": "mytestgroup", | ||||||
|       "consumer-timeout-ms": "10000", |       "consumer-timeout-ms": "10000", | ||||||
|       "log_filename": "console_consumer_11.log", |       "log_filename": "console_consumer_11.log", | ||||||
|       "formatter": "kafka.consumer.ChecksumMessageFormatter", |  | ||||||
|       "config_filename": "console_consumer_11.properties" |       "config_filename": "console_consumer_11.properties" | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1047,6 +1047,7 @@ def start_producer_in_thread(testcaseEnv, entityConfigList, producerConfig, kafk | ||||||
|                        "JMX_PORT=" + jmxPort, |                        "JMX_PORT=" + jmxPort, | ||||||
|                        kafkaRunClassBin + " kafka.perf.ProducerPerformance", |                        kafkaRunClassBin + " kafka.perf.ProducerPerformance", | ||||||
|                        "--brokerinfo " + brokerInfoStr, |                        "--brokerinfo " + brokerInfoStr, | ||||||
|  |                        "--initial-message-id " + str(initMsgId), | ||||||
|                        "--messages " + noMsgPerBatch, |                        "--messages " + noMsgPerBatch, | ||||||
|                        "--topic " + topic, |                        "--topic " + topic, | ||||||
|                        "--threads " + threads, |                        "--threads " + threads, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue