Sentinel v1.7.2 Release Notes

Release Date: 2020-04-08 // over 1 year ago
  • ๐Ÿ— In this version, we've brought breaking changes about the slot SPI mechanism. The slot chain builder SPI has been deprecated (legacy classes were reserved for compatibility). Now Sentinel will take ProcessorSlot itself as SPI. Note that the slot might be stateful, so Sentinel will still build different new slot chains for each resource.

    ๐Ÿ‘€ Furthermore, a new Logger SPI mechanism is introduced for flexible logging extension. The default RecordLog implementation is still based on java.util.logging, and developers could introduce dependencies of logging integration module to adapt to existing logging libraries (e.g. slf4j). See here for more details.

    ๐Ÿ”‹ Features / Enhancements

    • โž• Add SOFARPC adapter module (#1307)
    • โž• Add Zuul 2.x gateway adapter module (#1138)
    • โ™ป๏ธ Refactor: Make ProcessorSlot itself as SPI and deprecate legacy slot chain builder (#411)
    • โž• Add new Logger SPI to support flexible logging extension mechanism and add general JUL adapter for Logger SPI (#1307, #1338)
    • ๐Ÿ’… Polish placeholders in logging content to slf4j convention (#1342)
    • โž• Add slf4j logging extension (#1344)
    • โž• Add "web-context-unify" config in Spring WebMVC adapter to support "chain" relation flow strategy (#1328)
    • ๐Ÿ‘Œ Improve Dubbo 2.7.5 compatibility problem in sentinel-apache-dubbo-adapter (#1296)
    • ๐Ÿ‘ฎ Force modifyRule command handler to fail if an incompatible old fastjson found (#1377)
    • ๐Ÿ‘ Calculate both process and system CPU usage to support single process running in container environment (#1204)
    • ๐Ÿ‘Œ Improve the logs when the heartbeat response indicates failure (#1303)

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fix NPE bug in Tracer when context size exceeds the limit (#1293)
    • ๐Ÿ›  Fix the parsing issue in large post request for sentinel-transport-simple-http (#1255)
    • ๐Ÿ›  Fix the bug that context was not released when blocked in Spring Web adapter (#1353)
    • ๐Ÿ›  Fix timezone problem of sentinel-block.log
    • ๐Ÿ›  Fix incorrect name resolving cache issue in sentinel-transport-simple-http (resolved in #926 more details in #1583)

    Dashboard

    • ๐Ÿ‘Œ Improve the compatibility on the Content-Type header of POST request (#1260)
    • โœจ Enhance reliability and performance of InMemoryMetricsRepository (#1319)
    • ๐Ÿ‘Œ Support setting value pattern for client IP and host in gateway flow rule dialog (#1325)
    • Hide advanced options in flow rule dialog when cluster mode is selected (#1367)
    • ๐Ÿ›  Fix NoNodeException problem of FlowRuleZookeeperProvider sample (#1352)

    Thanks for the contributors: @cdfive, @echooymxq, @jasonjoo2010, @jy2156121, @linlinisme, @mantuliu, @olof-nord, @sczyh30, @tianhaowhu, @wavesZh, @WongTheo, @xue8, @zhaoyuguang