File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ncds-sdk/src/main/java/com/nasdaq/ncdsclient/internal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public ReadSchemaTopic(){
35
35
public Schema readSchema (String topic ) throws Exception {
36
36
KafkaConsumer schemaConsumer = getConsumer ("Control-" +getClientID (securityProps ));
37
37
schemaConsumer .subscribe (Collections .singletonList (controlSchemaName ));
38
- Duration sec = Duration .ofSeconds (5 );
38
+ Duration sec = Duration .ofSeconds (10 );
39
39
Schema messageSchema = null ;
40
40
ConsumerRecord <String ,GenericRecord > lastRecord =null ;
41
41
@@ -93,7 +93,7 @@ public Set<String> getTopics() throws Exception{
93
93
94
94
KafkaConsumer schemaConsumer = getConsumer ("Control-" +getClientID (securityProps ));
95
95
schemaConsumer .subscribe (Collections .singletonList (controlSchemaName ));
96
- Duration sec = Duration .ofSeconds (5 );
96
+ Duration sec = Duration .ofSeconds (10 );
97
97
while (true ) {
98
98
ConsumerRecords <String , GenericRecord > schemaRecords = schemaConsumer .poll (sec );
99
99
if (schemaRecords .isEmpty ()){
@@ -160,4 +160,4 @@ private Schema internalSchema (String topic) throws Exception {
160
160
}
161
161
}
162
162
163
- }
163
+ }
You can’t perform that action at this time.
0 commit comments