kokila-19 opened a new pull request, #3822:
URL: https://github.com/apache/hive/pull/3822

   ### What changes were proposed in this pull request?
   no_auto_compaction configuration should be allowed to overridden on a 
database level: adding no_auto_compaction=false should override the table level 
setting forcing the initiator to schedule compaction for all tables.
   
   ### Why are the changes needed?
   Currently a simple user can create a table with no_auto_compaction=true 
table property and create an aborted write transaction writing to this table. 
This way a malicious user can prevent cleaning up data for the aborted 
transaction, creating performance degradation.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Unit tests 
   
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestInitiator2.java
   
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactionMetrics2.java
   


-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to