LuciferYang opened a new pull request, #37480:
URL: https://github.com/apache/spark/pull/37480
### What changes were proposed in this pull request?
This pr change to use Jackson instead of json4s to serialize
`RocksDBMetrics`.
### Why are the changes needed?
Weaken the dependence on `json4s`.
### Does this PR introduce _any_ user-facing change?
No. In fact, `RocksDBMetrics.json` is only used to print logs now.
### How was this patch tested?
- Pass GitHub Actions
- Manually compare json results:
**Before**
```
13:22:48.839 INFO org.apache.spark.sql.execution.streaming.state.RocksDB
[Thread-1]: Committed 1, stats =
{"numCommittedKeys":1,"numUncommittedKeys":1,"totalMemUsageBytes":3976,"writeBatchMemUsageBytes":17,"totalSSTFilesBytes":1146,"nativeOpsHistograms":{"get":{"sum":11,"avg":5.5,"stddev":0.5,"median":5.0,"p95":5.9,"p99":5.98,"count":2},"put":{"sum":17932,"avg":17932.0,"stddev":0.0,"median":17932.0,"p95":17932.0,"p99":17932.0,"count":1},"compaction":{"sum":0,"avg":0.0,"stddev":0.0,"median":0.0,"p95":0.0,"p99":0.0,"count":0}},"lastCommitLatencyMs":{"fileSync":582,"writeBatch":18,"flush":58,"pause":0,"checkpoint":64,"compact":0},"filesCopied":1,"bytesCopied":1146,"filesReused":0,"zipFileBytesUncompressed":6973,"nativeOpsMetrics":{"writerStallDuration":0,"totalBytesReadThroughIterator":0,"readBlockCacheHitCount":0,"totalBytesWrittenByCompaction":0,"readBlockCacheMissCount":0,"totalBytesReadByCompaction":0,"totalBytesWritten":17,"totalBytesRead":0}}
```
**After**
```
13:18:45.210 INFO org.apache.spark.sql.execution.streaming.state.RocksDB
[Thread-1]: Committed 1, stats =
{"numCommittedKeys":1,"numUncommittedKeys":1,"totalMemUsageBytes":3976,"writeBatchMemUsageBytes":17,"totalSSTFilesBytes":1146,"nativeOpsHistograms":{"get":{"sum":7,"avg":3.5,"stddev":0.5,"median":3.0,"p95":3.9,"p99":3.98,"count":2},"put":{"sum":17927,"avg":17927.0,"stddev":0.0,"median":17927.0,"p95":17927.0,"p99":17927.0,"count":1},"compaction":{"sum":0,"avg":0.0,"stddev":0.0,"median":0.0,"p95":0.0,"p99":0.0,"count":0}},"lastCommitLatencyMs":{"fileSync":595,"writeBatch":17,"flush":60,"pause":0,"checkpoint":64,"compact":0},"filesCopied":1,"bytesCopied":1146,"filesReused":0,"zipFileBytesUncompressed":6973,"nativeOpsMetrics":{"writerStallDuration":0,"totalBytesReadThroughIterator":0,"readBlockCacheHitCount":0,"totalBytesWrittenByCompaction":0,"readBlockCacheMissCount":0,"totalBytesReadByCompaction":0,"totalBytesWritten":17,"totalBytesRead":0}}
```
seems no difference
--
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]