Google Apps Script year bug

I just ran into an awkward issue on Google Apps Script. Since yesterday, Dec 30, 2019, the function Utilities.formatDate returns 2020 as the current year. In the screenshot, you can see the log of function ‘yearBug’. The log timestamp clearly indicates Dec 31, 2019, but the output is 2020. for screenshot click here The timezone…

Consume minimum N number of messages once from Kafka with KafkaListener

I need to consumer minimum N number of messages once from Kafka with KafkaListener Below are the Consumer configurations Map<String, Object> props = new HashMap<>(); props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers); props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class); props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class); props.put(ConsumerConfig.GROUP_ID_CONFIG, “batch”); // maximum records per poll props.put(ConsumerConfig.MAX_POLL_RECORDS_CONFIG, “10”);