[ 
https://issues.apache.org/jira/browse/HIVE-25272?focusedWorklogId=612746&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-612746
 ]

ASF GitHub Bot logged work on HIVE-25272:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Jun/21 16:05
            Start Date: 21/Jun/21 16:05
    Worklog Time Spent: 10m 
      Work Description: pvary commented on a change in pull request #2413:
URL: https://github.com/apache/hive/pull/2413#discussion_r655517694



##########
File path: 
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java
##########
@@ -176,6 +177,28 @@ public void 
testReplOperationsNotCapturedInNotificationLog() throws Throwable {
     assert lastEventId == currentEventId;
   }
 
+  @Test
+  public void testREADOperationsNotCapturedInNotificationLog() throws 
Throwable {
+    //Perform empty bootstrap dump and load
+    primary.hiveConf.set("hive.txn.readonly.enabled", "true");
+    primary.run("create table " + primaryDbName + ".t1 (id int)");
+    primary.dump(primaryDbName);
+    replica.run("REPL LOAD " + primaryDbName + " INTO " + replicatedDbName);
+    //Perform empty incremental dump and load so that all db level properties 
are altered.
+    primary.dump(primaryDbName);
+    replica.run("REPL LOAD " + primaryDbName + " INTO " + replicatedDbName);
+    primary.run("insert into " + primaryDbName + ".t1 values(1)");
+    long lastEventId = primary.getCurrentNotificationEventId().getEventId();
+    primary.run("DESCRIBE DATABASE " + primaryDbName );
+    primary.run("SELECT * from " + primaryDbName + ".t1");
+    primary.run("SHOW tables " + primaryDbName);

Review comment:
       never mind, I got it 😄 




-- 
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.

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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 612746)
    Time Spent: 50m  (was: 40m)

> READ transactions are getting logged in NOTIFICATION LOG
> --------------------------------------------------------
>
>                 Key: HIVE-25272
>                 URL: https://issues.apache.org/jira/browse/HIVE-25272
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Pravin Sinha
>            Assignee: Pravin Sinha
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> While READ transactions are already skipped from getting logged in 
> NOTIFICATION logs, few are still getting logged. Need to skip those 
> transactions as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to