abdullah alamoudi has submitted this change and it was merged.

Change subject: [NO ISSUE][OTH] Remove logs for legal destroy calls
......................................................................


[NO ISSUE][OTH] Remove logs for legal destroy calls

- user model changes: no
- storage format changes: no
- interface changes: no

details:
- Previously, we logged when a cursor was destroyed multiple times.
- Since this is a legal call, we don't log this anymore.

Change-Id: I8fc5c4ad165e44d5259446aad8e64826a672fd77
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2403
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
Integration-Tests: Jenkins <[email protected]>
---
M 
hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/EnforcedIndexCursor.java
1 file changed, 0 insertions(+), 2 deletions(-)

Approvals:
  Anon. E. Moose #1000171: 
  Jenkins: Verified; No violations found; ; Verified
  Murtadha Hubail: Looks good to me, approved



diff --git 
a/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/EnforcedIndexCursor.java
 
b/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/EnforcedIndexCursor.java
index 929faff..b7caf7f 100644
--- 
a/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/EnforcedIndexCursor.java
+++ 
b/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/EnforcedIndexCursor.java
@@ -85,8 +85,6 @@
     public final void destroy() throws HyracksDataException {
         if (ENFORCE_OPEN_CLOSE_DESTROY) {
             if (state == State.DESTROYED) {
-                LOGGER.log(Level.WARN,
-                        "multiple cursor.destroy() call in " + 
Arrays.toString(new Throwable().getStackTrace()));
                 return;
             } else if (state != State.CLOSED) {
                 if (STORE_TRACES && openCallStack != null) {

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/2403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8fc5c4ad165e44d5259446aad8e64826a672fd77
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <[email protected]>
Gerrit-Reviewer: Anon. E. Moose #1000171
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Michael Blow <[email protected]>
Gerrit-Reviewer: Murtadha Hubail <[email protected]>
Gerrit-Reviewer: Till Westmann <[email protected]>
Gerrit-Reviewer: abdullah alamoudi <[email protected]>

Reply via email to