You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "hemantk-12 (via GitHub)" <gi...@apache.org> on 2023/07/14 23:00:48 UTC
[GitHub] [ozone] hemantk-12 commented on a diff in pull request #5070: HDDS-9004. [Snapshot] Pause the compaction log append if tarball creation is in progress
hemantk-12 commented on code in PR #5070:
URL: https://github.com/apache/ozone/pull/5070#discussion_r1264230191
##########
hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java:
##########
@@ -588,6 +590,8 @@ public void onCompactionCompleted(RocksDB db,
return;
}
+ waitForTarballCreation();
Review Comment:
Just transaction seq number in log doesn't solve the problem. I tired to explain it here: https://github.com/apache/ozone/commit/8db58df12318108b2d4e3cf8dc9bfeaccc4fadbe#diff-1d5c6c892a2d24d85ca002dafcb9f39341192baaa7b5323d2325b5fc7a238c7f
and wrote a coding using ThreadLocal: https://github.com/apache/ozone/commit/8db58df12318108b2d4e3cf8dc9bfeaccc4fadbe#diff-1d5c6c892a2d24d85ca002dafcb9f39341192baaa7b5323d2325b5fc7a238c7fR500
But problem with that assumption that CompactionBeginListener and CompactionCompletedListener are running on a same thread is wrong.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org