jt2594838 opened a new pull request, #18157:
URL: https://github.com/apache/iotdb/pull/18157

   ## Description
   This PR backports the fix for serializing a TsFileResource whose in-memory 
TimeIndex has been degraded to FileTimeIndex.
   
   When serializing a degraded resource and the .resource file still exists, 
TsFileResource now rebuilds a device time index through buildDeviceTimeIndex() 
for serialization instead of serializing FileTimeIndex directly.
   
   It also adds coverage for region migration after TimeIndex degradation in an 
existing cluster IT class to avoid introducing another cluster restart path.
   
   ## Tests
   - mvn spotless:apply -pl iotdb-core/datanode
   - mvn spotless:apply -pl integration-test -P with-integration-tests
   - mvn test -pl iotdb-core/datanode -Dtest=TsFileResourceTest (blocked: local 
dev/1.3 snapshot dependencies are not available without -am)
   - mvn test -pl iotdb-core/datanode -am -Dtest=TsFileResourceTest 
'-Dsurefire.failIfNoSpecifiedTests=false' (blocked before datanode tests by 
generated thrift compilation errors: 
TProtocol.incrementRecursionDepth/decrementRecursionDepth not found in 
iotdb-thrift-commons)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to