Sentinel v1.7.2 Release Notes

Release Date: 2020-04-08 // about 4 years 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