zclllyybb opened a new pull request, #65665:
URL: https://github.com/apache/doris/pull/65665
### What problem does this PR solve?
Issue Number: None
Problem Summary:
ALTER RESOURCE mutates resource objects in place, while SHOW RESOURCE,
checkpoint image serialization, and edit-log flush can read those same objects
asynchronously. For HDFS resources this can expose concurrent property-map
iteration and can let a later ALTER change the object serialized by an earlier
journal entry.
This change:
- protects HDFS resource property mutation and property/proc reads with the
resource read/write lock
- journals ALTER RESOURCE with a detached resource snapshot, preserving
per-resource ALTER order
- snapshots resources before checkpoint image serialization
- adds regression coverage for HDFS property locking, detached journal
snapshots, and reference snapshot copying
### Release note
None
### Check List
- Test:
- `git diff --check`
- `./run-fe-ut.sh --run org.apache.doris.catalog.ResourceMgrTest`
(blocked by an existing upstream `fe-core` testCompile failure:
`SchemaChangeHandlerTest.java:905` references missing
`Column.BINLOG_TIMESTAMP_COL`; FE main sources compile before this failure)
- `./build.sh --fe` (blocked by the same upstream `fe-core` testCompile
failure after FE main sources compile)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]